Skip to content
Snippets Groups Projects
Commit a67a476e authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Do not trust grep(1) to return a reasonable exit value

parent 86b5c43b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment