From 990bc107fa0f99b866e0153fa26725659f32ddca Mon Sep 17 00:00:00 2001 From: Ricardo Aielo Date: Thu, 8 Aug 2019 15:55:46 -0700 Subject: [PATCH] grep error suppressed in case .bash_profile does not exist --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 87898ff2e..3b8ea591f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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}