From 7860b2b84c11e37bc5a8ee60c5d3b52d331a08c2 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 29 Nov 2019 16:40:12 +0000 Subject: [PATCH] Single line if check, as suggested Co-Authored-By: Denys Havrysh --- bootstrap-salt.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 7969d4f..ebd8ee3 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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