vagrant: Simplify logic for Vagrant 1.8.7 bug.

This is very unlikely to happen since it's been years.
This commit is contained in:
Tim Abbott 2021-09-09 11:14:12 -07:00
parent 502697d239
commit cc44aca49b
1 changed files with 2 additions and 5 deletions

7
Vagrantfile vendored
View File

@ -5,11 +5,8 @@ VAGRANTFILE_API_VERSION = "2"
if Vagrant::VERSION == "1.8.7"
path = `command -v curl`
if path.include?("/opt/vagrant/embedded/bin/curl")
puts "In Vagrant 1.8.7, curl is broken. Please use Vagrant 2.0.2 " \
"or run 'sudo rm -f /opt/vagrant/embedded/bin/curl' to fix the " \
"issue before provisioning. See " \
"https://github.com/mitchellh/vagrant/issues/7997 " \
"for reference."
puts "In Vagrant 1.8.7, curl is broken. Please the latest Vagrant."
puts "See https://github.com/mitchellh/vagrant/issues/7997 for details."
exit
end
end