From f62ea80d43662d629f7efb06d86d4170b0bf3cd0 Mon Sep 17 00:00:00 2001 From: Arvin <62139570+wnlen@users.noreply.github.com> Date: Sat, 21 Mar 2026 00:03:54 +0800 Subject: [PATCH] Update run_clash.sh --- scripts/run_clash.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/run_clash.sh b/scripts/run_clash.sh index f671bec..4c1bc7f 100644 --- a/scripts/run_clash.sh +++ b/scripts/run_clash.sh @@ -56,10 +56,11 @@ fi test_config() { local bin="$1" local config="$2" - "$bin" -t -f "$config" >/dev/null 2>&1 + local runtime_dir="$3" + "$bin" -d "$runtime_dir" -t -f "$config" >/dev/null 2>&1 } -if ! test_config "$CLASH_BIN" "$CONFIG_FILE"; then +if ! test_config "$CLASH_BIN" "$CONFIG_FILE" "$RUNTIME_DIR"; then echo "[ERROR] config test failed: $CONFIG_FILE" >&2 exit 2 fi