diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/assert-content.sh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh index 0642663..d83ec33 100755 --- a/scripts/assert-content.sh +++ b/scripts/assert-content.sh @@ -59,7 +59,6 @@ assert-frontmatter() { echo Linting posts... >&2 for post in $(jq -r '.posts[] | @base64' "${JSON}"); do assert-frontmatter "$post" - REF="$(get-ref "$post")" DATE="$(get-date "$post" | awk '{print $1}')" URL="$(basename "$(get-url "$post")")" FILE="_posts/${DATE}-${URL%.html}.md" @@ -68,11 +67,6 @@ for post in $(jq -r '.posts[] | @base64' "${JSON}"); do red "date/filename mismatch: '${FILE}' does not exist." exit 1 } - - grep '\-post$' <(echo "${REF}") > /dev/null || { - red "ref '${REF}' doesn't end with '-post'." - exit 1 - } done echo Linting pages... >&2 @@ -91,12 +85,7 @@ done echo Linting tils... >&2 for til in $(jq -r '.tils[] | @base64' "${JSON}"); do - REF="$(get-ref "$til")" assert-frontmatter "$til" - grep '\-til$' <(echo "${REF}") > /dev/null || { - red "ref '${REF}' doesn't end with '-til'." - exit 1 - } done echo Asserting unique refs... >&2 |