exit if no package manager found

This commit is contained in:
Ray Elliott 2020-03-19 20:20:06 +00:00
parent a67a15bbe0
commit 6191a197ee
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ if command -v apt-get ; then
apt-get update && apt-get -y upgrade && apt-get -y install sudo apt-get update && apt-get -y upgrade && apt-get -y install sudo
else else
echo "Error - no package installer found." echo "Error - no package installer found."
exit 1
fi fi
# TODO ensure group sudo is allowed sudo # TODO ensure group sudo is allowed sudo