From 5df58a3b5d05048dfded9aaf61841a1c38ff1463 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 2 Sep 2020 18:03:41 -0500 Subject: [PATCH] Add error handler for install script --- localhost-deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/localhost-deploy.sh b/localhost-deploy.sh index 9f10373..6ec115a 100755 --- a/localhost-deploy.sh +++ b/localhost-deploy.sh @@ -15,6 +15,9 @@ if ! command -v ansible > /dev/null 2>&1; then elif command -v apk > /dev/null 2>&1; then printf "Installing via APK\n" sudo apk add py3-pip py3-setuptools + else + printf "No supported package manager found\nPlease install Ansible manually" + exit 1 fi sudo pip3 install ansible fi