From e07e03669561e0cef196fe9e819b4610b99a82f9 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 1 Jun 2018 03:31:12 +0200 Subject: [PATCH] Moving and copying must succeed. --- Library/Homebrew/cask/lib/hbc/artifact/moved.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/artifact/moved.rb b/Library/Homebrew/cask/lib/hbc/artifact/moved.rb index f3d29e06d7..43061178c1 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/moved.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/moved.rb @@ -43,7 +43,7 @@ module Hbc if target.parent.writable? FileUtils.move(source, target) else - command.run("/bin/mv", args: [source, target], sudo: true) + command.run!("/bin/mv", args: [source, target], sudo: true) end add_altname_metadata(target, source.basename, command: command) @@ -68,7 +68,7 @@ module Hbc if target.parent.writable? FileUtils.cp_r(target, source) else - command.run("/bin/cp", args: ["-r", target, source], sudo: true) + command.run!("/bin/cp", args: ["-r", target, source], sudo: true) end delete(target, force: force, command: command, **options)