From 0aafee6d9d1babfadaf26d7c33f6c5fa3bdbd2ba Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 29 Oct 2020 15:45:14 +0800 Subject: [PATCH] [misc] skip installation if fzf already installed --- fish/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/install.sh b/fish/install.sh index 6bd9f7b..ecf8618 100755 --- a/fish/install.sh +++ b/fish/install.sh @@ -13,7 +13,7 @@ case "$PM" in sudo apt install fish libnotify-bin xdotool -y if apt show fzf &>/dev/null; then sudo apt install fzf - else + elif ! which fzf &>/dev/null; then git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install fi