From 6191a197ee5167c6c85c53910be4a5578373b988 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 19 Mar 2020 20:20:06 +0000 Subject: [PATCH] exit if no package manager found --- user.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/user.sh b/user.sh index ca74abe..ff32f34 100755 --- a/user.sh +++ b/user.sh @@ -13,6 +13,7 @@ if command -v apt-get ; then apt-get update && apt-get -y upgrade && apt-get -y install sudo else echo "Error - no package installer found." + exit 1 fi # TODO ensure group sudo is allowed sudo