From 035294d6651d4d8bbff7900fa830dee294408eae Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Tue, 9 Sep 2014 08:55:26 -0400 Subject: [PATCH] pre/postflight stanza in decitime --- Casks/decitime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/decitime.rb b/Casks/decitime.rb index e3f5f81d2c5..99a7f09ccf1 100644 --- a/Casks/decitime.rb +++ b/Casks/decitime.rb @@ -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