cat instead of install for stale file handle error
This commit is contained in:
parent
af5baf7b13
commit
dbc61360ba
|
@ -46,11 +46,12 @@ mkdir -p "$SRCPATH"
|
|||
chown -R vagrant:vagrant "$SRCPATH" 2>/dev/null || true
|
||||
# ^^ silencing errors here because we expect this to fail for the shared folder
|
||||
|
||||
install -m0755 /dev/stdin /etc/profile.d/gopath.sh <<EOF
|
||||
cat >/etc/profile.d/gopath.sh <<EOF
|
||||
export GOPATH="$SRCPATH"
|
||||
export GOROOT="$SRCROOT"
|
||||
export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
|
||||
EOF
|
||||
chmod 755 /etc/profile.d/gopath.sh
|
||||
|
||||
cat >>/home/vagrant/.bashrc <<EOF
|
||||
|
||||
|
|
Loading…
Reference in New Issue