Merge pull request #45 from qfdk/patch-1

[FIX] 一键脚本得到当前用户
This commit is contained in:
EtherDream 2019-05-24 23:25:31 +08:00 committed by GitHub
commit 5b9cedcdee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
i.sh
View File

@ -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