mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
bin/brew: use not operator inside [[
This commit is contained in:
parent
318ce388d7
commit
2d65caaee9
2
bin/brew
2
bin/brew
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user