fix.sh 197 Bytes
Newer Older
1 2 3 4 5
#!/bin/bash

for template in $(ls -1 *.json); do
  echo $template
  packer fix $template >/tmp/$$.json
Stefan Scherer's avatar
Stefan Scherer committed
6 7 8 9
  if [ $? -ne 0 ]; then
    cat /tmp/$$.json
    exit 1
  fi
10 11
  mv /tmp/$$.json $template
done