Add omv support

This commit is contained in:
James Shubin
2015-09-25 12:47:18 -04:00
parent 6150c2ccb9
commit 8dbca80853
3 changed files with 53 additions and 0 deletions

View File

@@ -27,4 +27,16 @@ fi
echo "gopath is: $GOPATH"
# some versions of golang apparently require this to run go get :(
if ! env | grep -q '^GOBIN='; then
export GOBIN="${GOPATH}bin/"
mkdir "$GOBIN"
if ! grep -q '^export GOBIN=' ~/.bashrc; then
echo 'export GOBIN="${GOPATH}bin/"' >> ~/.bashrc
fi
echo "setting go bin to: $GOBIN"
fi
echo "gobin is: $GOBIN"
go get ./... # get all the go dependencies