aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-01-20 15:56:44 +0800
committerXu Cheng2016-01-20 16:04:02 +0800
commit2d65caaee9ed1f7a9991451cc71eabe8f7c494cc (patch)
tree51f642bebb238b6c1cbb15df6911c4c43f9aba47
parent318ce388d75bb87cf2ee9966bfc19f0346460998 (diff)
downloadbrew-2d65caaee9ed1f7a9991451cc71eabe8f7c494cc.tar.bz2
bin/brew: use not operator inside `[[`
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 41016f5e5..dfd0b0dae 100755
--- a/bin/brew
+++ b/bin/brew
@@ -122,7 +122,7 @@ fi
# Many Pathname operations use getwd when they shouldn't, and then throw
# odd exceptions. Reduce our support burden by showing a user-friendly error.
-if ! [[ -d "$(pwd)" ]]
+if [[ ! -d "$(pwd)" ]]
then
odie "The current working directory doesn't exist, cannot proceed."
fi