Skip to content

Commit

Permalink
switch to diskutil for eject
Browse files Browse the repository at this point in the history
Mostly to see if this reduces random Travis errors, but also
because `diskutil eject` is a documented interface, and
`hdiutil eject` is not.
  • Loading branch information
rolandwalker committed Jun 18, 2014
1 parent 0c2c565 commit 87b670e
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 87b670e

Please sign in to comment.