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
fi
mv /tmp/$$.json $template
done
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