From 02ba8887b889126f4f300f78eeafc5e57fd014f2 Mon Sep 17 00:00:00 2001 From: qfdk Date: Fri, 24 May 2019 15:24:23 +0200 Subject: [PATCH] Update i.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 得到当前用户;$USER 可能为空 --- i.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i.sh b/i.sh index 2fa56b2..96c83d8 100755 --- a/i.sh +++ b/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 \ No newline at end of file +fi