Changes to Centos bootstrap to remove ~/git/vpp if it exists before attempting clone

- fixes issue with vagrant reload --provision not updating clone of clone

Change-Id: I506d4cbca90b30bf787c1be7e4ad39d748ea7f5b
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
This commit is contained in:
Keith Burns (alagalah)
2016-01-31 21:15:27 +01:00
committed by Dave Wallace
parent f5a857d52c
commit d5201c8007

View File

@ -28,7 +28,8 @@ cd ~vagrant/
sudo -u vagrant mkdir git sudo -u vagrant mkdir git
cd git/ cd git/
# You will need to alter this line to reflect reality. # Check if git exists and remove it before attempting clone, else clone ineffective when "reload --provision"
[ -d vpp ] && rm -rf vpp
sudo -H -u vagrant git clone /vpp sudo -H -u vagrant git clone /vpp
cd vpp cd vpp