Fix scripts for shellcheck 0.8 (#11051)

* Fix scripts for shellcheck 0.8

* Updates needed for hugo and shell check

* Ignore hugo build lock
This commit is contained in:
jacob-delgado 2022-03-14 18:03:40 -06:00 committed by GitHub
parent c702c2d96f
commit f845e59bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

5
.gitignore vendored
View File

@ -1,3 +1,6 @@
# hugo artifacts
.hugo_build.lock
# Eclipse artifacts
.project
.pydevproject
@ -34,4 +37,4 @@ out/**
go/**
# archived site version
archived_version
archived_version

View File

@ -274,4 +274,8 @@ disableAliases = true
weight = 5
[permalinks]
case-studies = "/:slug"
case-studies = "/:slug"
[security]
[security.funcs]
getenv = ['^HUGO_','URL']

View File

@ -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[@]}" )