Small grep flag fix so command is idempotent

This commit is contained in:
James Shubin
2015-09-25 12:38:24 -04:00
parent 2708223ab5
commit 6150c2ccb9

View File

@@ -19,7 +19,7 @@ fi
if ! env | grep -q '^GOPATH='; then if ! env | grep -q '^GOPATH='; then
export GOPATH="$HOME/gopath/" export GOPATH="$HOME/gopath/"
mkdir "$GOPATH" mkdir "$GOPATH"
if ! grep -F '^export GOPATH=' ~/.bashrc; then if ! grep -q '^export GOPATH=' ~/.bashrc; then
echo "export GOPATH=~/gopath/" >> ~/.bashrc echo "export GOPATH=~/gopath/" >> ~/.bashrc
fi fi
echo "setting go path to: $GOPATH" echo "setting go path to: $GOPATH"