#!/bin/bash

THISDIR=$(dirname ${BASH_SOURCE[0]})

# we need to run this as root

service libvirtd start
syncdir=$(mktemp -d /tmp/sync-XXXXXX)
yum -y install git
git clone https://github.com/CentOS/sig-core-t_functional $syncdir
cp $THISDIR/Vagrantfile $syncdir
chmod u+x $THISDIR/vagrant_test.sh
scl enable sclo-vagrant1 $THISDIR/vagrant_test.sh $syncdir
exit $?

#!/bin/bash

THISDIR=$(dirname ${BASH_SOURCE[0]})

# we need to run this as root

service libvirtd start
syncdir=$(mktemp -d /tmp/sync-XXXXXX)
yum -y install git
git clone https://github.com/CentOS/sig-core-t_functional $syncdir
cp $THISDIR/Vagrantfile $syncdir
chmod u+x $THISDIR/vagrant_test.sh
scl enable sclo-vagrant1 "$THISDIR/vagrant_test.sh $syncdir"
exit $?

Fix bad quoting to scl enable
Fix bad quoting to scl enable
