test -d to make sure awscli is actually installed

brew --prefix shows the location that a package is or would be
installed:

a8582c58/share/man/man1/brew.1 (L448-L449)
This commit is contained in:
Brandon W Maister 2014-09-11 10:40:47 -04:00
commit 6f18ab183a

View file

@ -3,7 +3,7 @@ _homebrew-installed() {
} }
_awscli-homebrew-installed() { _awscli-homebrew-installed() {
brew list awscli &> /dev/null test -d brew --prefix awscli &> /dev/null
} }
export AWS_HOME=~/.aws export AWS_HOME=~/.aws