From c81472ae63df5c764d395b79dbd29b05cc0b7240 Mon Sep 17 00:00:00 2001 From: tlichten Date: Wed, 2 Sep 2015 12:34:48 +0200 Subject: [PATCH] Fixing path to provision script when being included as library --- provision/vagrant.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/provision/vagrant.sh b/provision/vagrant.sh index be7c4ef..611f2f1 100644 --- a/provision/vagrant.sh +++ b/provision/vagrant.sh @@ -11,12 +11,9 @@ PROVISION=$1 export OS_USER=vagrant PWD=$(su $OS_USER -c "cd && pwd") VAGRANT_VSIM="/vagrant" -# check if vagrant-vsim is already there -if [ ! -d "$VAGRANT_VSIM" ] -then - echo "Download vagrant-vsim into $VAGRANT_VSIM" - # clone vagrant-vsim - su $OS_USER -c "cd && git clone https://github.com/tlichten/vagrant-vsim.git $VAGRANT_VSIM" + +if [ ! -d "$VAGRANT_VSIM/provision" ]; then + VAGRANT_VSIM="/vagrant/lib/vagrant-vsim" fi # start vagrant-vsim provisioning