From 453e1232d7fad38277f2c5bf10dec49a63d79034 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 11 Mar 2016 20:17:01 +0000 Subject: [PATCH] Ensure cask-tidy only runs if it makes sense. --- bin/cask-tidy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/cask-tidy b/bin/cask-tidy index 420ee5a..4c6eb9b 100755 --- a/bin/cask-tidy +++ b/bin/cask-tidy @@ -1,5 +1,7 @@ #!/bin/bash +[ ! -x $(which brew) -a ! -d /opt/homebrew-cask ] && exit 1 + function __remove-cask { caskBasePath="/opt/homebrew-cask/Caskroom" local cask="$1"