diff --git a/template/.pre-commit-config.yaml.j2 b/template/.pre-commit-config.yaml.j2 index 259bae3d..f393cd03 100644 --- a/template/.pre-commit-config.yaml.j2 +++ b/template/.pre-commit-config.yaml.j2 @@ -38,6 +38,10 @@ repos: hooks: - id: shellcheck args: ["--severity=info"] + # Temporarily needed until all getting_started.sh.j2 scripts are made non-executable. + # As long as they are, prek will treat them as shell scripts and so this hook will fail. + # pre-commit behaves differently apparently and doesn't pass .j2 files to this hook. + exclude: \.j2$ # WARNING (@NickLarsenNZ): Nix users need to install ruff first. # If you do not, you will need to delete the cached ruff binary shown in the diff --git a/template/scripts/docs_templating.sh b/template/scripts/docs_templating.sh index e4b945da..8468a971 100755 --- a/template/scripts/docs_templating.sh +++ b/template/scripts/docs_templating.sh @@ -38,4 +38,7 @@ do jinja2 "$file" "$templating_vars_file" -o "$new_file_name" done +# Ensure this script is executable +chmod +x docs/modules/opensearch/examples/getting_started/getting_started.sh + echo "done"