This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
#/ Description: | |
#/ Run Terraform fmt on nomad file to format HCL, and update the file in place. | |
#/ | |
#/ Arguments: | |
#/ $1 the nomad flie | |
#/ --diff if set, then do not write the changes, but show the diff between current and cacnonical format |