Unverified Commit f7ebc825 authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Abort on error

parent e7df8f5b
......@@ -3,5 +3,9 @@
for template in $(ls -1 *.json); do
echo $template
packer fix $template >/tmp/$$.json
if [ $? -ne 0 ]; then
cat /tmp/$$.json
exit 1
mv /tmp/$$.json $template
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment