Skip to content

Commit

Permalink
Merge pull request #4975 from rolandwalker/diskutil_eject
Browse files Browse the repository at this point in the history
switch to `diskutil` for eject
  • Loading branch information
rolandwalker committed Jun 18, 2014
2 parents 3ec4122 + 87b670e commit 05a121e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cask/container/dmg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 05a121e

Please sign in to comment.