Browse Source

Update i.sh

得到当前用户;$USER 可能为空
qfdk 6 years ago
parent
commit
02ba8887b8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      i.sh

+ 2 - 2
i.sh

@@ -7,7 +7,7 @@ OPENRESTY_VER=1.15.8.1
 
 SUPPORTED_OS="Linux-x86_64"
 OS="$(uname)-$(uname -m)"
-
+USER=`whoami`
 NGX_DIR="$HOME/openresty"
 
 COLOR_RESET="\033[0m"
@@ -105,4 +105,4 @@ if [[ "$1" == "install" ]]; then
   install
 else
   main
-fi
+fi