cat instead of install for stale file handle error

This commit is contained in:
Dylan Vaughn 2017-01-02 09:24:47 -08:00
parent af5baf7b13
commit dbc61360ba
1 changed files with 2 additions and 1 deletions

3
Vagrantfile vendored
View File

@ -46,11 +46,12 @@ mkdir -p "$SRCPATH"
chown -R vagrant:vagrant "$SRCPATH" 2>/dev/null || true chown -R vagrant:vagrant "$SRCPATH" 2>/dev/null || true
# ^^ silencing errors here because we expect this to fail for the shared folder # ^^ 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 GOPATH="$SRCPATH"
export GOROOT="$SRCROOT" export GOROOT="$SRCROOT"
export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH" export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
EOF EOF
chmod 755 /etc/profile.d/gopath.sh
cat >>/home/vagrant/.bashrc <<EOF cat >>/home/vagrant/.bashrc <<EOF