소스 검색

Merge pull request #45 from qfdk/patch-1

[FIX] 一键脚本得到当前用户
EtherDream 6 년 전
부모
커밋
5b9cedcdee
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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