From 8cb418a9ab29f3c2e429691cf67e67f9fb2c2a20 Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Thu, 30 Sep 2021 19:58:58 +0100 Subject: [PATCH] Update !Script-Template.sh --- !Script-Template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/!Script-Template.sh b/!Script-Template.sh index 9377e88..a76240f 100755 --- a/!Script-Template.sh +++ b/!Script-Template.sh @@ -161,7 +161,7 @@ # Unmount the DMG /bin/echo "`date`: Unmounting installer disk image." >> ${logfile} - /usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep AppName | awk '{print $1}') -quiet + /usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep "${appName}" | awk '{print $1}') -quiet /bin/sleep 10 else