only add to bashrc if not already there
This commit is contained in:
parent
dbc61360ba
commit
46bef4ac8d
|
@ -53,7 +53,7 @@ export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
|
|||
EOF
|
||||
chmod 755 /etc/profile.d/gopath.sh
|
||||
|
||||
cat >>/home/vagrant/.bashrc <<EOF
|
||||
grep -q -F 'cd /opt/gopath/src/github.com/hashicorp/terraform' /home/vagrant/.bashrc || cat >>/home/vagrant/.bashrc <<EOF
|
||||
|
||||
## After login, change to terraform directory
|
||||
cd /opt/gopath/src/github.com/hashicorp/terraform
|
||||
|
|
Loading…
Reference in New Issue