#!/usr/bin/env bash

set -ex

GOPATH=/home/vagrant/go
GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.3.3.linux-amd64.tar.gz
GO_ARCHIVE=/tmp/$(basename $GO_ARCHIVE_URL)

echo "Downloading go..."
mkdir -p $(dirname $GOROOT)
wget -q $GO_ARCHIVE_URL -O $GO_ARCHIVE
tar xf $GO_ARCHIVE -C $(dirname $GOROOT)
chmod -R a+w $GOROOT

if [ ! -d $TMPDIR ]; then
  mkdir -p $TMPDIR
fi

rm -f $GO_ARCHIVE

#!/usr/bin/env bash

set -ex

GOPATH=/home/vagrant/go
GO_ARCHIVE_URL=https://storage.googleapis.com/golang/go1.3.3.linux-amd64.tar.gz
GO_ARCHIVE=/tmp/$(basename $GO_ARCHIVE_URL)

echo "Downloading go..."
mkdir -p $(dirname $GOROOT)
wget -q $GO_ARCHIVE_URL -O $GO_ARCHIVE
tar xf $GO_ARCHIVE -C $(dirname $GOROOT)

if [ ! -d $TMPDIR ]; then
  mkdir -p $TMPDIR
fi

rm -f $GO_ARCHIVE

Fix directory permissions for go path.
Fix directory permissions for go path.

[#93481960]

Signed-off-by: Corey Innis <c6de6a297c7ba72017894924528d266f693d3f31@pivotal.io>
