From f458758bfd77bbf44ae5b19f11e995d9d847370f Mon Sep 17 00:00:00 2001 From: clsty Date: Sat, 16 Mar 2024 15:17:51 +0800 Subject: [PATCH] Better logic --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e7775cf9d..88cd13b3d 100755 --- a/install.sh +++ b/install.sh @@ -198,7 +198,8 @@ v rsync -av ".local/bin/" "$HOME/.local/bin/" sleep 1 try hyprctl reload -grep -q 'source ~/.config/zshrc.d/dots-hyprland.zsh' .zshrc || existed_zsh_conf=n +existed_zsh_conf=n +grep -q 'source ~/.config/zshrc.d/dots-hyprland.zsh' ~/.zshrc && existed_zsh_conf=y ##################################################################################### printf "\e[36m[$0]: Finished. See the \"Import Manually\" folder and grab anything you need.\e[97m\n"