CORD-705: Create install.out at the right location
Change-Id: Id0c4ce01353792efd0a791275a546abedbd3e413
diff --git a/scripts/cord-in-a-box.sh b/scripts/cord-in-a-box.sh
index e984f47..df48a12 100755
--- a/scripts/cord-in-a-box.sh
+++ b/scripts/cord-in-a-box.sh
@@ -11,8 +11,6 @@
REPO_BRANCH="master"
VERSION_STRING="CiaB development version"
-exec > >(tee -i $CORDDIR/install.out)
-exec 2>&1
function add_box() {
vagrant box list | grep $1 | grep virtualbox || vagrant box add $1
@@ -58,6 +56,8 @@
if [ ! -d "$CORDDIR" ]
then
mkdir $CORDDIR && cd $CORDDIR
+
+
git config --global user.name 'Test User'
git config --global user.email 'test@null.com'
git config --global color.ui false
@@ -72,6 +72,9 @@
done
fi
+ exec > >(tee -i $CORDDIR/install.out)
+ exec 2>&1
+
cd $CORDDIR/build
vagrant plugin list | grep vagrant-libvirt || vagrant plugin install vagrant-libvirt --plugin-version 0.0.35
vagrant plugin list | grep vagrant-mutate || vagrant plugin install vagrant-mutate