From 64ef23d5971746da69c92343f1db809b6a6dbc68 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 9 Nov 2020 16:44:27 +0800 Subject: [PATCH] [bugfix] fzf failed if already exisits --- fish/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/install.sh b/fish/install.sh index fb779a5..cbe6989 100755 --- a/fish/install.sh +++ b/fish/install.sh @@ -11,7 +11,7 @@ case "$PM" in sudo add-apt-repository ppa:fish-shell/release-3 -y sudo apt update sudo apt install fish libnotify-bin xdotool silversearcher-ag dash -y - git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf + [ ! -d ~/.fzf ] && git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install ;; pacman)