Small grep flag fix so command is idempotent
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user