From c2419f343709843bf26483416d6652755468b6d5 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Sun, 29 Dec 2024 17:39:20 -0800 Subject: [PATCH] Skip vagrant instructions --- validate.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/validate.sh b/validate.sh index 09b48dd..3fd82ec 100755 --- a/validate.sh +++ b/validate.sh @@ -115,13 +115,17 @@ end EOT # editorconfig-checker-enable vagrant init generic/alpine316 --box-version 3.5.0 --template vagrant_file.erb -vagrant up || : -vagrant halt -vagrant package -if [ ! -f package.box ]; then - warn "Vagrant couldn't package the running box" +if vagrant up >/dev/null; then + vagrant halt + vagrant package + if [ ! -f package.box ]; then + warn "Vagrant couldn't package the running box" + fi + vagrant destroy -f +else + vagrant plugin list + error "Vagrant couldn't run the box" fi -vagrant destroy -f || : popd trap ERR