Ver Fonte

$USER 变量从 whoami 获取

zjcqoo há 6 anos atrás
pai
commit
daf58f5cb5
1 ficheiros alterados com 2 adições e 2 exclusões
  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"
@@ -161,4 +161,4 @@ if [[ "$1" == "install" ]]; then
   install
 else
   main
-fi
+fi