diff --git a/lib/cask/container/dmg.rb b/lib/cask/container/dmg.rb index 08fc0ab218914..a76914476de57 100644 --- a/lib/cask/container/dmg.rb +++ b/lib/cask/container/dmg.rb @@ -45,7 +45,7 @@ def assert_mounts_found def eject! @mounts.each do |mount| # realpath is a failsafe against unusual filenames - @command.run!('/usr/bin/hdiutil', :args => ['eject', Pathname.new(mount).realpath]) + @command.run!('/usr/sbin/diskutil', :args => ['eject', Pathname.new(mount).realpath]) end end end