From ebf136975981d18a6a91e8ed16c93d46ae3ca871 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 11 Mar 2016 20:18:52 +0000 Subject: [PATCH] Ensure cask-tidy runs nicely on non-installed machines. --- bin/cask-tidy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cask-tidy b/bin/cask-tidy index 4c6eb9b..ff20feb 100755 --- a/bin/cask-tidy +++ b/bin/cask-tidy @@ -1,6 +1,6 @@ #!/bin/bash -[ ! -x $(which brew) -a ! -d /opt/homebrew-cask ] && exit 1 +[ ! -x "$(which brew 2>/dev/null)" -a ! -d /opt/homebrew-cask ] && exit 1 function __remove-cask { caskBasePath="/opt/homebrew-cask/Caskroom"