Archived
1
0
Fork 0

fish: add dependencies check to install script for Debian

This commit is contained in:
Casper V. Kristensen 2022-06-26 21:21:23 +02:00
parent 54b526ede4
commit 9b69fff9c7

View file

@ -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