grep error suppressed in case .bash_profile does not exist
This commit is contained in:
parent
546cd90cea
commit
990bc107fa
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -70,7 +70,7 @@ su -l -c 'cd /vagrant; bundle install' vagrant
|
||||
|
||||
# Automatically move into the shared folder, but only add the command
|
||||
# if it's not already there.
|
||||
grep -q 'cd /vagrant' /home/vagrant/.bash_profile || echo 'cd /vagrant' >> /home/vagrant/.bash_profile
|
||||
grep -q 'cd /vagrant' /home/vagrant/.bash_profile 2>/dev/null || echo 'cd /vagrant' >> /home/vagrant/.bash_profile
|
||||
|
||||
# Touch the marker file so we don't do this again
|
||||
touch ${MARKER_FILE}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user