From 0a05b533a5cf70c3568a50dd4413d19f0d475b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 2 Feb 2022 19:59:14 +0100 Subject: [PATCH] Logging info and a fix --- fragments/functions.sh | 2 +- fragments/main.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fragments/functions.sh b/fragments/functions.sh index efdcead..a7cc17e 100644 --- a/fragments/functions.sh +++ b/fragments/functions.sh @@ -609,7 +609,7 @@ installFromPKG() { installFromPKG fi - if [ $pkginstallstatus -ne 0 ] ; then + if [[ $pkginstallstatus -ne 0 ]] ; then #if ! installer -pkg "$archiveName" -tgt "$targetDir" ; then cleanupAndExit 9 "Error installing $archiveName error:\n$logoutput" ERROR fi diff --git a/fragments/main.sh b/fragments/main.sh index 3f75085..88b0fbb 100644 --- a/fragments/main.sh +++ b/fragments/main.sh @@ -65,6 +65,8 @@ if [[ ! -a "${LOGO}" ]]; then fi printlog "LOGO=${LOGO}" +printlog "Label type: $type" + # MARK: extract info from data if [ -z "$archiveName" ]; then case $type in @@ -85,6 +87,7 @@ if [ -z "$archiveName" ]; then ;; esac fi +printlog "archiveName: $archiveName" DEBUG if [ -z "$appName" ]; then # when not given derive from name