You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vagrant@local:/var/www/beagov$ ./vendor/acquia/blt/scripts/drupal-vm/post-provision.sh
grep: /vagrant/box/config.yml: No such file or directory
./vendor/acquia/blt/scripts/drupal-vm/post-provision.sh: line 9: temp: Permission denied
And I expected this to happen:
The BLT alias should be added successfully.
Summary
Basically, there are a two assumptions made in this script which may not be universally true:
The script will always be run when there is a valid /vagrant mount. This may not be true if you're trying to use any type of VM-like environment outside of Drupal VM-created-inside-a-BLT-project.
env bash will always be available.
So to fix... could we:
Use #!/bin/bash instead of #!/usr/bin/env bash in the top of the script?
My system information:
When I run this command:
I get the following output:
Either:
or:
And I expected this to happen:
The BLT alias should be added successfully.
Summary
Basically, there are a two assumptions made in this script which may not be universally true:
/vagrant
mount. This may not be true if you're trying to use any type of VM-like environment outside of Drupal VM-created-inside-a-BLT-project.env bash
will always be available.So to fix... could we:
#!/bin/bash
instead of#!/usr/bin/env bash
in the top of the script?The text was updated successfully, but these errors were encountered: