From d5a2523cb0fbcac163c8a72e0295e11e34f8196f Mon Sep 17 00:00:00 2001 From: mango Date: Mon, 27 Apr 2026 22:03:21 +0800 Subject: [PATCH] Fix menu runner under nounset --- proxy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy.sh b/proxy.sh index 07f8898..080eb20 100755 --- a/proxy.sh +++ b/proxy.sh @@ -25,9 +25,9 @@ command -v curl >/dev/null 2>&1 || err "缺少 curl,请先安装: apt install mkdir -p "$TMP_DIR" run_remote() { - local name="$1" path="$2" file="$TMP_DIR/$path" - info "下载 $name 脚本:$BASE_URL/scripts/$path" - curl -fsSL "$BASE_URL/scripts/$path" -o "$file" + local name="$1" script_path="$2" file="$TMP_DIR/$script_path" + info "下载 $name 脚本:$BASE_URL/scripts/$script_path" + curl -fsSL "$BASE_URL/scripts/$script_path" -o "$file" chmod +x "$file" info "开始执行 $name" exec bash "$file"