aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-06 02:06:34 -0300
committerEuAndreh <eu@euandre.org>2020-02-06 02:06:34 -0300
commit02943c8e2d96ec0534b243386f4048df3cddd24d (patch)
tree920dd44a69a9504cb1eb0208634187e1b0ccb258 /scripts
parentAdd missing lang annotations (diff)
downloadeuandre.org-02943c8e2d96ec0534b243386f4048df3cddd24d.tar.gz
euandre.org-02943c8e2d96ec0534b243386f4048df3cddd24d.tar.xz
Assert pastebins have lang frontmatter
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/assert-content.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh
index 3c3f0ba..94bf1b3 100755
--- a/scripts/assert-content.sh
+++ b/scripts/assert-content.sh
@@ -81,6 +81,11 @@ for page in $(jq -r '.pages[] | @base64' "${JSON}"); do
set -e
done
+echo Linting pastebins... >&2
+for pastebin in $(jq -r '.pastebins[] | @base64' "${JSON}"); do
+ assert-frontmatter "$pastebin"
+done
+
echo Asserting unique refs... >&2
KNOWN_IDS=()
for page in $(jq -r '.pages[] | @base64' "${JSON}"); do