From 291a768bec1ce50429b99940ee0dc23a32946ca1 Mon Sep 17 00:00:00 2001 From: whm <973418690@qq.com> Date: Sat, 1 Nov 2025 14:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/deploy.sh b/deploy.sh index 2a22a48..fb764b6 100644 --- a/deploy.sh +++ b/deploy.sh @@ -16,7 +16,7 @@ if [ "$1" = "0" ]; then else echo "默认执行代码拉取" fi -echo "whm" + # 如果不跳过git pull,则拉取最新代码 if [ $SKIP_GIT_PULL -eq 0 ]; then echo "" @@ -37,12 +37,12 @@ if [ $SKIP_GIT_PULL -eq 0 ]; then fi # 读取sudo密码 -# echo "" -# echo -n "请输入sudo密码: " -# read -s SUDO_PASSWORD -# echo "" -# echo "" -SUDO_PASSWORD="yuxinda01" +echo "" +echo -n "请输入sudo密码: " +read -s SUDO_PASSWORD +echo "" +echo "" + # 检查密码是否为空 if [ -z "$SUDO_PASSWORD" ]; then echo "错误: 密码不能为空"