Split local assignments for nounset compatibility

This commit is contained in:
mango
2026-04-27 22:03:36 +08:00
parent d5a2523cb0
commit e043026725

View File

@@ -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"