Ensure cask-tidy only runs if it makes sense.

This commit is contained in:
Scott Wallace 2016-03-11 20:17:01 +00:00
parent f2f179ba08
commit 453e1232d7

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
[ ! -x $(which brew) -a ! -d /opt/homebrew-cask ] && exit 1
function __remove-cask { function __remove-cask {
caskBasePath="/opt/homebrew-cask/Caskroom" caskBasePath="/opt/homebrew-cask/Caskroom"
local cask="$1" local cask="$1"