Skip to content
Snippets Groups Projects
Commit 77f8aabe authored by Sebastian Meiling's avatar Sebastian Meiling Committed by GitHub
Browse files

Merge pull request #5847 from cgundogan/pr/vagrant_file_provisioner

vagrant: prevent error by checking existence of .gitconfig
parents ee486fd9 f41f7bd8
No related branches found
No related tags found
No related merge requests found
# -*- mode: ruby -*- # -*- mode: ruby -*-
# vi: set ft=ruby : # vi: set ft=ruby :
require 'fileutils'
Vagrant.configure(2) do |config| Vagrant.configure(2) do |config|
# For a complete reference, please see the online documentation at # For a complete reference, please see the online documentation at
# https://docs.vagrantup.com. # https://docs.vagrantup.com.
...@@ -55,6 +57,9 @@ Vagrant.configure(2) do |config| ...@@ -55,6 +57,9 @@ Vagrant.configure(2) do |config|
'--vendorid', '0x0d28', '--productid', '0x0204'] '--vendorid', '0x0d28', '--productid', '0x0204']
end end
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig" if File.exists?(File.join(Dir.home, ".gitconfig"))
config.vm.provision "file", source: File.join(Dir.home, ".gitconfig"), destination: ".gitconfig"
end
config.vm.provision "shell", path: "dist/tools/vagrant/bootstrap.sh" config.vm.provision "shell", path: "dist/tools/vagrant/bootstrap.sh"
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment