--- a/build/build.sh Thu Nov 03 03:05:43 2016 +0100
+++ b/build/build.sh Thu Nov 03 04:43:18 2016 +0100
@@ -50,12 +50,14 @@
echoblue "---> checking vagrant"
if vagrant status | grep -q -v "running"; then
echoblue "---> starting vagrant"
- if type -t workon > /dev/null 2>&1; then
+ if which virtualenvwrapper.sh > /dev/null 2>&1 ; then
+ echoblue "---> activating ansible"
+ source `which virtualenvwrapper.sh`
workon ansible
fi
vagrant up
VAGRANT_STARTED=true
- if type -t deactivate > /dev/null 2>&1; then
+ if type -t deactivate > /dev/null 2>&1 ; then
deactivate
fi
fi
@@ -64,6 +66,7 @@
popd > /dev/null
+ return 0
}
function usage() {