From 9b69fff9c7e0340322b663ed4180339bfddcd034 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sun, 26 Jun 2022 21:21:23 +0200 Subject: [PATCH] fish: add dependencies check to install script for Debian --- install/fish.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install/fish.sh b/install/fish.sh index 3cc53d4..67210f6 100755 --- a/install/fish.sh +++ b/install/fish.sh @@ -13,9 +13,12 @@ if [ "$(lsb_release -is)" = "Ubuntu" ]; then sudo ln -s /usr/bin/fdfind /usr/local/bin/fd fi if [ "$(lsb_release -is)" = "Debian" ]; then - # We could script this, but it's probably easier to just install it manually - echo "Please install dependencies from https://github.com/PatrickF1/fzf.fish#installation" - exit + # We could script this, but it's probably easier to just install it manually.. + # Basically just grab the binaries, chown to root, and put them into /usr/local/bin/ + if ! [ -x "$(command -v fzf)" ] || ! [ -x "$(command -v fd)" ] || ! [ -x "$(command -v bat)" ]; then + echo "Please install dependencies from https://github.com/PatrickF1/fzf.fish#installation" + exit 1 + fi fi