@jswork/ushell-module-base 1.0.23 → 1.0.24

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.
Files changed (2) hide show
  1. package/modules/ip.sh +4 -3
  2. package/package.json +1 -1
package/modules/ip.sh CHANGED
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # server ip
4
- export SERVER_IP=`wget -qO- ipecho.net/plain -T 2`;
5
- # for macos
6
3
  if [[ $(uname) == Darwin ]]; then
7
4
  export SERVER_IP='127.0.0.1';
5
+ else
6
+ export SERVER_IP=`wget -qO- ipecho.net/plain -T 2`;
8
7
  fi
9
8
 
10
9
 
10
+
11
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/ushell-module-base",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Unix like shell base module.",
5
5
  "main": "index.sh",
6
6
  "repository": {