Update functions.sh

This commit is contained in:
Søren Theilgaard
2022-03-03 21:41:48 +01:00
parent c049dc4a92
commit f5db340589

View File

@@ -246,7 +246,7 @@ getAppVersion() {
if [[ $SKIP_UNINSTALLED -eq 1 ]]; then if [[ $SKIP_UNINSTALLED -eq 1 ]]; then
cleanupAndExit 0 "No previous app found, and SKIP_UNINSTALLED=1." REQ cleanupAndExit 0 "No previous app found, and SKIP_UNINSTALLED=1." REQ
else else
printlog "No previous app found" DEBUG printlog "No previous app found" WARN
fi fi
else else
printlog "App(s) found: ${applist}" INFO printlog "App(s) found: ${applist}" INFO
@@ -269,7 +269,7 @@ getAppVersion() {
if [[ -d "$installedAppPath"/Contents/_MASReceipt ]];then if [[ -d "$installedAppPath"/Contents/_MASReceipt ]];then
printlog "Installed $appName is from App Store, use “IGNORE_APP_STORE_APPS=yes” to replace." printlog "Installed $appName is from App Store, use “IGNORE_APP_STORE_APPS=yes” to replace."
if [[ $IGNORE_APP_STORE_APPS == "yes" ]]; then 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 appversion=0
else else
cleanupAndExit 1 "App previously installed from App Store, and we respect that" ERROR cleanupAndExit 1 "App previously installed from App Store, and we respect that" ERROR