anchor.diff:  # write a machine-readable report of the last build in JSONL format. There will
   # also be a dated log file in plain text containing the raw output of
   # imagebuilder.
  +gen_report="${IMAGEBUILDER_REPORT:-false}"
   plain_log=/var/log/imagebuilder/<%= @name -%>-build-$(date +"%Y%m%d").log
   json_report=/var/log/imagebuilder/<%= @name %>-report.jsonl
   
  
positive.code: 
  # We set the shell's error handling options here to avoid exiting before a
  # report has been written
  set -euo pipefail
  
  if [ $IMAGEBUILDER_REPORT = "true" ]; then
    # Write imagebuilder's exit code to imagebuilder report
    jq -Rn '{"result_imagebuilder": input}' <<< $imagebuilder_ec > $json_report
  
  
negative.code: #!/bin/bash
  set -ux
  
  . <%= @rc_file %>
  
  