This commit is contained in:
2023-11-21 12:45:54 -06:00
parent 358ff939b2
commit f625752f3b

View File

@@ -2,7 +2,7 @@
#%%MULTILINE_YAML_START #%%MULTILINE_YAML_START
# render job-templates.yml from job-templates.tpl.yml # render job-templates.yml from job-templates.tpl.yml
set -euo pipefail set -euo pipefail
for script in scripts/*.sh; do for script in $(find ./scripts -name '*.sh'); do
awk -v script_name="$(basename "$script")" ' awk -v script_name="$(basename "$script")" '
NR==1 && /^#!/ {printf("# Begin of %s\n",script_name); next} # strip shebang in first line, print head comment NR==1 && /^#!/ {printf("# Begin of %s\n",script_name); next} # strip shebang in first line, print head comment
/^\s*$/ {next} # strip any newlines or whitespace /^\s*$/ {next} # strip any newlines or whitespace