From 9f79cf4d65e672fd7c8d4cd0e3c4fd45142b83f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Thu, 3 Mar 2022 21:35:22 +0100 Subject: [PATCH] Update functions.sh --- fragments/functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fragments/functions.sh b/fragments/functions.sh index d2432d1..c56d526 100644 --- a/fragments/functions.sh +++ b/fragments/functions.sh @@ -242,8 +242,8 @@ getAppVersion() { # printlog "App(s) found: ${applist}" DEBUG # applist=$(mdfind "kind:application AND name:$appName" -0 ) fi - if [[ -z applist ]]; then - printlog "No previous app found" INFO + if [[ -z $applist ]]; then + printlog "No previous app found" WARN else printlog "App(s) found: ${applist}" INFO fi @@ -265,7 +265,7 @@ getAppVersion() { if [[ -d "$installedAppPath"/Contents/_MASReceipt ]];then printlog "Installed $appName is from App Store, use “IGNORE_APP_STORE_APPS=yes” to replace." if [[ $IGNORE_APP_STORE_APPS == "yes" ]]; then - printlog "Replacing App Store apps, no matter the version" + printlog "Replacing App Store apps, no matter the version" WARN appversion=0 else cleanupAndExit 1 "App previously installed from App Store, and we respect that" ERROR