From 31b87e373598d7bd7718087ff586f7c2baffc9eb Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Sun, 5 Dec 2021 15:04:34 +0000 Subject: [PATCH] Update sonos-s2.sh --- sonos-s2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonos-s2.sh b/sonos-s2.sh index 4521079..c1dd887 100644 --- a/sonos-s2.sh +++ b/sonos-s2.sh @@ -45,7 +45,7 @@ url="https://www.sonos.com/redir/controller_software_mac2" /bin/sleep 10 /bin/echo "`date`: Unmounting installer disk image." >> ${logfile} - /usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep Sonos | awk '{print $1}') -quiet + /bin/umount -f /Volumes/Sonos* /bin/sleep 10 /bin/echo "`date`: Deleting disk image." >> ${logfile} /bin/rm /Library/Caches/com.purplecomputing.mdm/Apps/${dmgfile}