From 7a0622ea9ea45b56cb38469b746121e156a0d7a9 Mon Sep 17 00:00:00 2001 From: commitay Date: Sat, 28 Apr 2018 19:17:28 +1000 Subject: [PATCH] Fix `zap --force` for uninstalled casks --- Library/Homebrew/cask/lib/hbc/artifact/moved.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/artifact/moved.rb b/Library/Homebrew/cask/lib/hbc/artifact/moved.rb index 31cede71a9..f3d29e06d7 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/moved.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/moved.rb @@ -58,7 +58,7 @@ module Hbc end unless target.exist? - return if skip + return if skip || force raise CaskError, "It seems the #{self.class.english_name} source '#{target}' is not there." end