From c37e012b1ff634eacbbe78b9511c0bda0fdada16 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 14 Nov 2020 13:53:04 -0300 Subject: assert-content.sh: Remove extra duplicate contains-element of ${IGNORED_PAGES[@]} --- scripts/assert-content.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'scripts/assert-content.sh') 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 -- cgit v1.2.3