From a7f26de9651c15057353ddf5e91136b0df0d03ba Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Mon, 1 Feb 2021 16:33:20 +0100 Subject: [PATCH] return exit code 2 if install or upgrade is cancelled --- docker/my-dojo/dojo.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/my-dojo/dojo.sh b/docker/my-dojo/dojo.sh index 4d71567..10a6d3c 100755 --- a/docker/my-dojo/dojo.sh +++ b/docker/my-dojo/dojo.sh @@ -211,6 +211,8 @@ install() { echo -e "\nInstallation of Dojo failed. See the above error message." exit $buildResult fi + else + exit 2 fi } @@ -345,6 +347,8 @@ upgrade() { echo -e "\nUpgrade of Dojo failed. See the above error message." exit $buildResult fi + else + exit 2 fi }