pre/postflight stanza in decitime

This commit is contained in:
Roland Walker 2014-09-09 08:55:26 -04:00
parent 6df9a98c86
commit 035294d665
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class Decitime < Cask
# fix wonky DMG by mounting it once read-write per discussion at
# https://github.com/caskroom/homebrew-cask/pull/2654
before_install do
preflight do
system %Q{/usr/bin/hdiutil eject "$(/usr/bin/hdiutil mount -readwrite -noidme -nobrowse -mountrandom /tmp #{destination_path.join(artifacts[:nested_container].first)} | /usr/bin/cut -f3 -- - | /usr/bin/grep -- '.' -)" >/dev/null 2>&1}
end
end