Skip to content

Commit b704760

Browse files
committed
fix(diffnav): Install delta as requirement
Signed-off-by: Mateusz Łoskot <[email protected]>
1 parent 7b1c4f5 commit b704760

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

install/terminal/app-diffnav.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ source ~/.dotfiles/log.sh "${BASH_SOURCE[0]}"
44

55
echolog "Installing diffnav"
66

7+
if ! command -v "delta" &>/dev/null; then
8+
sudo apt update -y
9+
sudo apt install -y git-delta
10+
fi
11+
712
VERSION=$(curl -s "https://api.github.com/repos/dlvhdr/diffnav/releases/latest" | grep -Po '"tag_name":\s*"v?\K[0-9.]+')
813
echolog "Downloading diffnav ${VERSION}"
914

0 commit comments

Comments
 (0)