add cwd env

This commit is contained in:
Nachuan Tang
2022-07-02 16:59:50 -04:00
parent bb7b8c8c9b
commit c122d5c1f6
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
# get self-host server ip
SERVERIP=x.useless.pw
ip=$(ifconfig | grep -Po 10.0.0.[01][0-9]+)
$(which ifconfig > /dev/null 2>&1) && \
ip=$(ifconfig | grep -Po "10.0.0.[01][0-9]+")
[ "$ip" != "" ] && SERVERIP=10.0.0.100