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