1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

vagrant: prevent error by checking existence of .gitconfig

This commit is contained in:
Cenk Gündoğan 2016-09-16 17:15:24 +02:00
parent 8a74475e70
commit f41f7bd8ff

7
Vagrantfile vendored
View File

@ -1,6 +1,8 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'fileutils'
Vagrant.configure(2) do |config|
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
@ -55,6 +57,9 @@ Vagrant.configure(2) do |config|
'--vendorid', '0x0d28', '--productid', '0x0204']
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"
end