Ensure cask-tidy runs nicely on non-installed machines.

This commit is contained in:
Scott Wallace 2016-03-11 20:18:52 +00:00
parent 453e1232d7
commit ebf1369759

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/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 { function __remove-cask {
caskBasePath="/opt/homebrew-cask/Caskroom" caskBasePath="/opt/homebrew-cask/Caskroom"