Explorar o código

Merge pull request #45 from qfdk/patch-1

[FIX] 一键脚本得到当前用户
EtherDream %!s(int64=6) %!d(string=hai) anos
pai
achega
5b9cedcdee
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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