From f845e59bea52119c042010f63657f3ee7a0bcc61 Mon Sep 17 00:00:00 2001 From: jacob-delgado Date: Mon, 14 Mar 2022 18:03:40 -0600 Subject: [PATCH] Fix scripts for shellcheck 0.8 (#11051) * Fix scripts for shellcheck 0.8 * Updates needed for hugo and shell check * Ignore hugo build lock --- .gitignore | 5 ++++- config.toml | 6 +++++- scripts/lint_site.sh | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index aa5bac14d030e..97cc35437d998 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# hugo artifacts +.hugo_build.lock + # Eclipse artifacts .project .pydevproject @@ -34,4 +37,4 @@ out/** go/** # archived site version -archived_version \ No newline at end of file +archived_version diff --git a/config.toml b/config.toml index c5db71804e480..ca2a65004a0d0 100644 --- a/config.toml +++ b/config.toml @@ -274,4 +274,8 @@ disableAliases = true weight = 5 [permalinks] - case-studies = "/:slug" \ No newline at end of file + case-studies = "/:slug" + +[security] + [security.funcs] + getenv = ['^HUGO_','URL'] diff --git a/scripts/lint_site.sh b/scripts/lint_site.sh index 4df7d07df2f3d..a3360d3452844 100755 --- a/scripts/lint_site.sh +++ b/scripts/lint_site.sh @@ -107,7 +107,7 @@ SKIP_LANGS=( en zh pt-br ) for lang in $LANGS; do for i in "${!SKIP_LANGS[@]}"; do if [[ "${SKIP_LANGS[$i]}" = "${lang}" ]]; then - unset SKIP_LANGS["${i}"] + unset 'SKIP_LANGS[${i}]' fi done SKIP_LANGS=( "${SKIP_LANGS[@]}" )