diff options
author | EuAndreh <eu@euandre.org> | 2020-11-14 13:53:04 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-11-14 13:53:04 -0300 |
commit | c37e012b1ff634eacbbe78b9511c0bda0fdada16 (patch) | |
tree | 8043f8a3dfb9ff064d8e91f87198a1e4c2256304 /scripts/assert-content.sh | |
parent | assert-content.sh: Filter out all .atom files (diff) | |
download | euandre.org-c37e012b1ff634eacbbe78b9511c0bda0fdada16.tar.gz euandre.org-c37e012b1ff634eacbbe78b9511c0bda0fdada16.tar.xz |
assert-content.sh: Remove extra duplicate contains-element of ${IGNORED_PAGES[@]}
Diffstat (limited to 'scripts/assert-content.sh')
-rwxr-xr-x | scripts/assert-content.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh index 7f5aa5f..f3681c9 100755 --- a/scripts/assert-content.sh +++ b/scripts/assert-content.sh @@ -87,14 +87,11 @@ assert-frontmatter() { REF="$(get-ref "$F")" URL="$(get-url "$F")" LAYOUT="$(get-layout "$F")" + TITLE="$(get-title "$F")" [[ -z "${LLANG}" ]] && fail-attr 'lang' "${URL}" [[ -z "${REF}" ]] && fail-attr 'ref' "${URL}" - - if ! contains-element "${URL}" "${IGNORED_PAGES[@]}"; then - TITLE="$(get-title "$F")" - [[ -z "${TITLE}" ]] && fail-attr 'title' "${URL}" - fi + [[ -z "${TITLE}" ]] && fail-attr 'title' "${URL}" if ! contains-element "${LLANG}" "${LANGS[@]}"; then red "Invalid lang '${LLANG}' in ${URL}." >&2 |