diff options
| author | commitay | 2018-01-13 20:54:17 +1000 |
|---|---|---|
| committer | commitay | 2018-01-13 21:31:00 +1000 |
| commit | 8bf948482325bdc10ab7d0eff75ce0da4d5daf1c (patch) | |
| tree | 17742a7bbaf50aa30a3e8fb0c0fe450333dee954 /Library | |
| parent | 651988bf5538c78d4a81428ea4153baf6c4b0318 (diff) | |
| download | brew-8bf948482325bdc10ab7d0eff75ce0da4d5daf1c.tar.bz2 | |
cask moved: check target writable for move_back
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/artifact/moved.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/moved.rb b/Library/Homebrew/cask/lib/hbc/artifact/moved.rb index f5ef790eb..856ab2766 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/moved.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/moved.rb @@ -65,7 +65,7 @@ module Hbc ohai "Moving #{self.class.english_name} '#{target.basename}' back to '#{source}'." source.dirname.mkpath - if source.parent.writable? + if target.parent.writable? FileUtils.move(target, source) else command.run("/bin/mv", args: [target, source], sudo: true) |
