From e6ffb544d4e2f6ada2c7f5d502d38903d839fb93 Mon Sep 17 00:00:00 2001 From: libm Date: Tue, 27 May 2025 16:44:33 +0800 Subject: [PATCH] fix: optimize --- script/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/common.sh b/script/common.sh index b46db86..d120dec 100644 --- a/script/common.sh +++ b/script/common.sh @@ -99,7 +99,7 @@ _set_rc() { echo "source $CLASH_SCRIPT_DIR/common.sh && source $CLASH_SCRIPT_DIR/clashctl.sh && watch_proxy" | tee -a "$SHELL_RC_BASH" "$SHELL_RC_ZSH" >&/dev/null - [ -e "$(dirname "$SHELL_RC_FISH")" ] && /bin/install $SCRIPT_FISH "$SHELL_RC_FISH" + [ -n "$SHELL_RC_FISH" ] && /bin/install $SCRIPT_FISH "$SHELL_RC_FISH" } # 默认集成、安装mihomo内核