I'm using the following Vagrantfile:
$script = <<-SHELL printf zzz > /home/vagrant/aaa.txt
sudo printf > /home/vagrant/bbb.txt
sh -c "printf > /home/vagrant/ccc.txt"
sudo sh -c "printf > /home/vagrant/ddd.txt"
SHELL
Vagrant.configure("2") do |config|
config.vm.box = "laravel/homestead"
config.vm.provision "shell", inline: $script
end
I'm running Vagrant 2.2.7 and Hyper-V with Windows 10 Version 1909. And none of the commands are being ran.
Here's the output when I ran vagrant up --provider-hyperv:
Any ideas?