Skip to content

Commit

Permalink
Skip vagrant instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Dec 30, 2024
1 parent 1da8728 commit c2419f3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2419f3

Please sign in to comment.