From a2ee2ccddee6f9246b8b7baaa5286984addfbc97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 10 Nov 2021 08:58:05 +0100 Subject: [PATCH] Update functions.sh --- fragments/functions.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fragments/functions.sh b/fragments/functions.sh index 6475479..777b61e 100644 --- a/fragments/functions.sh +++ b/fragments/functions.sh @@ -399,6 +399,8 @@ installAppWithPath() { # $1: path to app to install in $targetDir CLIoutput=$("$mountname/$CLIInstaller" "${CLIArguments[@]}" 2>&1) CLIstatus=$(echo $?) logoutput="$CLIoutput" # dedupliatelogs "$CLIoutput" + + if [ $CLIstatus -ne 0 ] ; then cleanupAndExit 3 "Error installing $mountname/$CLIInstaller $CLIArguments error: $logoutput" #ERROR fi printlog "Debugging enabled, update tool output was: $logoutput" #DEBUG