add cwd env
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user