Skip to content

Commit

Permalink
Fixes #1771: blt vm writes to bashrc in DrupalVM and leaves it unwrit…
Browse files Browse the repository at this point in the history
…able. (#1773)
  • Loading branch information
grasmash authored Jul 7, 2017
1 parent 327103e commit 531f6b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/drupal-vm/post-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ BLT_ALIAS_FILE="./vendor/acquia/blt/scripts/blt/alias"
if [ -f "$BLT_ALIAS_FILE" ]
then
grep -q -F 'function blt' /home/vagrant/.bashrc || (cat "$BLT_ALIAS_FILE" /home/vagrant/.bashrc > temp && mv temp /home/vagrant/.bashrc)
chown vagrant /home/vagrant/.bashrc
chgrp vagrant /home/vagrant/.bashrc

else
echo "Make sure you're in the project root and have run composer install."
exit 1
Expand Down

0 comments on commit 531f6b1

Please sign in to comment.