File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ vagrant: ## Run vagrant against a previously up'd cluster. Example: make vagrant
3838
3939vagrant-destroy : # # Destroy a previously created local VM cluster
4040 @hack/vagrant-destroy.sh
41- @HACK_MULTI_NODE=" true" hack/vagrant-destroy.sh
4241
4342vagrant-clean : vagrant-destroy # # Destroy a previously created local VM cluster and remove all downloaded/generated assets
4443 @rm -rf hack/_output
Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ export HACK_DIR
88# shellcheck source=vagrant-common.sh
99. " ${HACK_DIR} /vagrant-common.sh"
1010
11+ if [ ! -d " ${BK_CLONE_DIR} " ]; then
12+ echo " INFO: Bootkube repo not found. Nothing to destroy."
13+ exit 0
14+ fi
15+
1116for i in " ${BK_CLONE_DIR} /hack/single-node" " ${BK_CLONE_DIR} /hack/multi-node" ; do
1217 echo " INFO: Running vagrant destroy -f in ${i} "
1318 cd " ${i} "
You can’t perform that action at this time.
0 commit comments