Skip to content

Commit

Permalink
Fixing path to provision script when being included as library
Browse files Browse the repository at this point in the history
  • Loading branch information
tlichten committed Sep 2, 2015
1 parent 49c0008 commit c81472a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions provision/vagrant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c81472a

Please sign in to comment.