grep error suppressed in case .bash_profile does not exist

This commit is contained in:
Ricardo Aielo 2019-08-08 15:55:46 -07:00
parent 546cd90cea
commit 990bc107fa
1 changed files with 1 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -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}