From d0c4a32879df3a66472bad36fdef9e0575f43f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Woidig?= <91139971+SimonWoidig@users.noreply.github.com> Date: Tue, 18 Oct 2022 16:17:35 +0200 Subject: [PATCH] Update install.sh (#246) Add check for bzip2 command existance --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 2638498..57600bc 100755 --- a/install.sh +++ b/install.sh @@ -31,6 +31,11 @@ else fi echo $ARCH +if ! command -v bzip2 &>/dev/null; then + echo "Missing bzip2 command. Please install the bzip2 package for your system." + exit 1 +fi + wget -qO - https://api.github.com/repos/cupcakearmy/autorestic/releases/latest \ | grep "browser_download_url.*_${OS}_${ARCH}" \ | cut -d : -f 2,3 \