build/build.sh
changeset 368 5f79f31ca9a2
parent 367 e0fb97c1e9c6
child 386 c731ab9b934d
--- a/build/build.sh	Tue Oct 18 18:42:13 2016 +0200
+++ b/build/build.sh	Wed Oct 19 00:31:18 2016 +0200
@@ -48,8 +48,14 @@
     echoblue "---> checking vagrant"
     if vagrant status | grep -q "running"; then
         echoblue "---> starting vagrant"
+        if [ type workon ]; then
+            workon ansible
+        fi
         vagrant up
         VAGRANT_STARTED=true
+        if [ type deactivate ]; then
+            deactivate
+        fi
     fi
 
     echoblue "---> done"