From 1e9d62a3052d29145f97779fd6ccfcb676cb0a5b Mon Sep 17 00:00:00 2001 From: makeyangcom Date: Thu, 14 Mar 2024 18:50:37 +0800 Subject: [PATCH] 2.0.0 --- tools/update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/update.sh b/tools/update.sh index ec43d71..1734faf 100755 --- a/tools/update.sh +++ b/tools/update.sh @@ -14,7 +14,10 @@ if [ ! -d "/data/wwwroot/game" ]; then mkdir -p /data/wwwroot/game fi -sudo chmod +x /data/wwwroot/game/* +# shellcheck disable=SC2012 +if [ "$(ls -A /data/wwwroot/game/ | wc -l)" -ne 0 ]; then + sudo chmod +x /data/wwwroot/game/* +fi # 编译后端服务 cd /data/wwwroot/server/