github.com/hashicorp/packer@v1.14.3/provisioner/shell-local/test-fixtures/script.sh (about)

     1  #!/bin/bash
     2  
     3  # On first try, exits 1; on second try, passes.
     4  if [[ ! -f test-fixtures/file.txt ]] ; then
     5      echo 'hello' > test-fixtures/file.txt
     6      exit 1
     7  fi