Single line if check, as suggested

Co-Authored-By: Denys Havrysh <Denys.Gavrysh@gmail.com>
This commit is contained in:
Pedro Algarvio 2019-11-29 16:40:12 +00:00
parent 9b0ef8094a
commit 7860b2b84c
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -6750,8 +6750,7 @@ install_macosx_stable_deps() {
install_macosx_git_deps() {
install_macosx_stable_deps || return 1
echo "$PATH" | grep -q /usr/local/bin
if [ $? -eq 1 ]; then
if ! echo "$PATH" | grep -q /usr/local/bin; then
echowarn "/usr/local/bin was not found in \$PATH. Adding it for the duration of the script execution."
export PATH=/usr/local/bin:$PATH
fi