From 6150c2ccb905ff113a4d1f3fe14c40b48d7d725a Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 25 Sep 2015 12:38:24 -0400 Subject: [PATCH] Small grep flag fix so command is idempotent --- misc/make-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/make-deps.sh b/misc/make-deps.sh index 4533d011..bb9ae090 100755 --- a/misc/make-deps.sh +++ b/misc/make-deps.sh @@ -19,7 +19,7 @@ fi if ! env | grep -q '^GOPATH='; then export GOPATH="$HOME/gopath/" mkdir "$GOPATH" - if ! grep -F '^export GOPATH=' ~/.bashrc; then + if ! grep -q '^export GOPATH=' ~/.bashrc; then echo "export GOPATH=~/gopath/" >> ~/.bashrc fi echo "setting go path to: $GOPATH"