Land #356, Fix if then else statement

This commit is contained in:
Jeffrey Martin 2019-02-12 11:18:41 -06:00
commit 1635028a8e
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,7 @@ for provider in $providers; do
mkdir -p "$packer_build_path"
if [ -e $packer_build_path/$search_string.box ]; then
echo "It looks like the $provider vagrant box already exists. Skipping the build."
fi
else
echo "Building the Vagrant box for $provider..."
packer_provider="$provider-iso"
if [ $provider = "qemu" ]; then
@ -162,6 +162,7 @@ for provider in $providers; do
echo "Error building the Vagrant boxes using Packer. Please check the output above for any error messages."
exit 1
fi
fi
done
echo "Attempting to add the box to Vagrant..."