From 611be41aa5a75b35464f31b34a197afa008e5bc4 Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Fri, 16 Jan 2015 13:44:10 -0800 Subject: [PATCH] Set VAGRANT_CWD so commands work from anywhere --- cluster/vagrant/util.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/vagrant/util.sh b/cluster/vagrant/util.sh index 88c7742f32a..25cf5358b8e 100644 --- a/cluster/vagrant/util.sh +++ b/cluster/vagrant/util.sh @@ -40,6 +40,10 @@ function verify-prereqs { fi done + # Set VAGRANT_CWD to KUBE_ROOT so that we find the right Vagrantfile no + # matter what directory the tools are called from. + export VAGRANT_CWD="${KUBE_ROOT}" + export USING_KUBE_SCRIPTS=true }