From: Nicolas Boisselier Date: Sat, 17 Sep 2016 16:03:12 +0000 (+0100) Subject: mac_install_dmg X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=92aac60b595de6a116bd240621d897e5bdccd3bb;p=nb.git mac_install_dmg --- diff --git a/etc/profile.d/mac.sh b/etc/profile.d/mac.sh index 5b3913e1..a45e94a9 100644 --- a/etc/profile.d/mac.sh +++ b/etc/profile.d/mac.sh @@ -72,7 +72,7 @@ mac_xmessage() { mac_install_dmg() { local MOUNTDIR=$(echo `hdiutil mount "$1" | tail -1 | awk '{$1=$2=""; print $0}'` | xargs -0 echo) - sudo installer --verbose -pkg "${MOUNTDIR}/"*.pkg -target / + sudo installer -verbose -pkg "${MOUNTDIR}/"*.pkg -target / sudo hdiutil detach "${MOUNTDIR}" }