Skip to content

Commit

Permalink
Fix scripts for shellcheck 0.8 (#11051)
Browse files Browse the repository at this point in the history
* Fix scripts for shellcheck 0.8

* Updates needed for hugo and shell check

* Ignore hugo build lock
  • Loading branch information
jacob-delgado authored Mar 15, 2022
1 parent c702c2d commit f845e59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# hugo artifacts
.hugo_build.lock

# Eclipse artifacts
.project
.pydevproject
Expand Down Expand Up @@ -34,4 +37,4 @@ out/**
go/**

# archived site version
archived_version
archived_version
6 changes: 5 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,8 @@ disableAliases = true
weight = 5

[permalinks]
case-studies = "/:slug"
case-studies = "/:slug"

[security]
[security.funcs]
getenv = ['^HUGO_','URL']
2 changes: 1 addition & 1 deletion scripts/lint_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}" )
Expand Down

0 comments on commit f845e59

Please sign in to comment.