Skip to content

Commit

Permalink
check package installation worked in install script
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jun 9, 2022
1 parent ea124f7 commit b8974be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ if [ "$(which dnf)" != "" ] ; then
packagefound=true
sudo dnf -y copr enable karmab/kcli
sudo dnf -y install kcli
if [ "$?" != "0" ] ; then
echo -e "${RED}Package installation didnt work(${NC}"
exit 1
fi
elif [ "$(which apt-get)" != "" ] ; then
packagefound=true
curl -1sLf https://dl.cloudsmith.io/public/karmab/kcli/cfg/setup/bash.deb.sh | sudo -E bash
sudo apt-get update
sudo apt-get -y install python3-kcli
if [ "$?" != "0" ] ; then
echo -e "${RED}Package installation didnt work(${NC}"
exit 1
fi
fi

if [ "$packagefound" == "true" ] ; then
Expand Down

0 comments on commit b8974be

Please sign in to comment.