From e043026725c904e451257f60d6c83d90ba2c5261 Mon Sep 17 00:00:00 2001 From: mango Date: Mon, 27 Apr 2026 22:03:36 +0800 Subject: [PATCH] Split local assignments for nounset compatibility --- proxy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy.sh b/proxy.sh index 080eb20..67c76ff 100755 --- a/proxy.sh +++ b/proxy.sh @@ -25,7 +25,9 @@ command -v curl >/dev/null 2>&1 || err "缺少 curl,请先安装: apt install mkdir -p "$TMP_DIR" run_remote() { - local name="$1" script_path="$2" file="$TMP_DIR/$script_path" + local name="$1" + local script_path="$2" + local file="$TMP_DIR/$script_path" info "下载 $name 脚本:$BASE_URL/scripts/$script_path" curl -fsSL "$BASE_URL/scripts/$script_path" -o "$file" chmod +x "$file"