From ce3f12227bf95d80522c8cf59137829ec8025843 Mon Sep 17 00:00:00 2001 From: days0102 <411883104@qq.com> Date: Wed, 26 Nov 2025 11:18:01 +0800 Subject: [PATCH] fix: remove shift to prevent error when no arguments in Zsh When no arguments are provided, Zsh reports "shift count must be <= $#". Removing the shift ensures clashhelp works correctly in both Bash and Zsh without producing any error messages. --- script/clashctl.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/script/clashctl.sh b/script/clashctl.sh index 4a42edd..7f0408b 100644 --- a/script/clashctl.sh +++ b/script/clashctl.sh @@ -354,7 +354,6 @@ function clashctl() { clashupgrade "$@" ;; *) - shift clashhelp "$@" ;; esac