aboutsummaryrefslogtreecommitdiff
path: root/scripts/assert-content.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-11-14 13:53:04 -0300
committerEuAndreh <eu@euandre.org>2020-11-14 13:53:04 -0300
commitc37e012b1ff634eacbbe78b9511c0bda0fdada16 (patch)
tree8043f8a3dfb9ff064d8e91f87198a1e4c2256304 /scripts/assert-content.sh
parentassert-content.sh: Filter out all .atom files (diff)
downloadeuandre.org-c37e012b1ff634eacbbe78b9511c0bda0fdada16.tar.gz
euandre.org-c37e012b1ff634eacbbe78b9511c0bda0fdada16.tar.xz
assert-content.sh: Remove extra duplicate contains-element of ${IGNORED_PAGES[@]}
Diffstat (limited to '')
-rwxr-xr-xscripts/assert-content.sh7
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