Skip to content

Commit

Permalink
Update install.sh (cupcakearmy#246)
Browse files Browse the repository at this point in the history
Add check for bzip2 command existance
  • Loading branch information
SimonWoidig committed Oct 18, 2022
1 parent 74979e9 commit d0c4a32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit d0c4a32

Please sign in to comment.