From 2d65caaee9ed1f7a9991451cc71eabe8f7c494cc Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Wed, 20 Jan 2016 15:56:44 +0800 Subject: [PATCH] bin/brew: use not operator inside `[[` --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 41016f5e58..dfd0b0dae2 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