diff --git a/bin/installbfa.sh b/bin/installbfa.sh index bc467f09b2db07acd0faf62fd8b4055add5ebeab..17ff00ee17bd297c140b32458b066db553654d08 100755 --- a/bin/installbfa.sh +++ b/bin/installbfa.sh @@ -158,7 +158,7 @@ function usersetup git pull # cd ~bfa - if expand < .bashrc | grep -Evq 'source .*bfa/bin/env' + if [ $( expand < .bashrc | grep -E 'source .*bfa/bin/env' | wc -l ) -eq 0 ] then info Adding to automatically source \~bfa/bfa/bin/env via .bashrc echo 'source ~/bfa/bin/env' >> .bashrc