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.
This commit is contained in:
1 parent
f5344fd496
commit
ce3f12227b
1 file changed
-1
@@ -354,7 +354,6 @@ function clashctl() {
|
||||
clashupgrade "$@"
|
||||
;;
|
||||
*)
|
||||
shift
|
||||
clashhelp "$@"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in new issue
Block a user