@jswork/ushell-module-base 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/cd.sh +2 -0
- package/modules/ip.sh +2 -2
- package/package.json +1 -1
package/modules/cd.sh
CHANGED
package/modules/ip.sh
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
# server ip
|
|
4
|
-
export SERVER_IP=`wget -qO- ipecho.net/plain`;
|
|
4
|
+
export SERVER_IP=`wget -qO- ipecho.net/plain -T 2`;
|
|
5
5
|
# for macos
|
|
6
6
|
if [[ $(uname) == Darwin ]]; then
|
|
7
|
-
|
|
7
|
+
export SERVER_IP='127.0.0.1';
|
|
8
8
|
fi
|
|
9
9
|
|
|
10
10
|
|