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 "错误: 密码不能为空"