mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Single line if check, as suggested
Co-Authored-By: Denys Havrysh <Denys.Gavrysh@gmail.com>
This commit is contained in:
parent
9b0ef8094a
commit
7860b2b84c
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue