bin/brew: use not operator inside [[

This commit is contained in:
Xu Cheng 2016-01-20 15:56:44 +08:00
parent 318ce388d7
commit 2d65caaee9

View File

@ -122,7 +122,7 @@ fi
# Many Pathname operations use getwd when they shouldn't, and then throw # Many Pathname operations use getwd when they shouldn't, and then throw
# odd exceptions. Reduce our support burden by showing a user-friendly error. # odd exceptions. Reduce our support burden by showing a user-friendly error.
if ! [[ -d "$(pwd)" ]] if [[ ! -d "$(pwd)" ]]
then then
odie "The current working directory doesn't exist, cannot proceed." odie "The current working directory doesn't exist, cannot proceed."
fi fi