From 2838c6e99727251232dfcde43e895f0c37d342fc Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 24 Dec 2020 14:25:35 -0300 Subject: assert-content.sh: Fix ShellCheck --- scripts/assert-content.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh index 08b256a..1e0170d 100755 --- a/scripts/assert-content.sh +++ b/scripts/assert-content.sh @@ -8,6 +8,7 @@ red() { echo -e "${red}${1}${end}"; } yellow() { echo -e "${yellow}${1}${end}"; } TRACKERS='-a udp://tracker.coppersurfer.tk:6969/announce -a udp://tracker.ccc.de:80/announce -a udp://tracker.publicbt.com:80 -a udp://tracker.istole.it:80 -a http://tracker.openbittorrent.com:80/announce -a http://tracker.ipv6tracker.org:80/announce' +# shellcheck disable=2016 AWK_S=' BEGIN { FRONTMATTER=0 @@ -144,8 +145,8 @@ assert-frontmatter() { WEBSEED="https://euandre.org/$OGG" if [ ! -f "$TORRENT" ]; then yellow "Missing torrent $TORRENT, generating..." - # shellcheck disable=2086 NOTES="$(awk "$AWK_S" "_podcasts/$DATE-$SLUG.md")" + # shellcheck disable=2086 mktorrent $TRACKERS \ -f \ -v \ @@ -186,8 +187,8 @@ assert-frontmatter() { WEBSEED="https://euandre.org/$WEBM" if [ ! -f "$TORRENT" ]; then yellow "Missing torrent $TORRENT, generating..." - # shellcheck disable=2086 NOTES="$(awk "$AWK_S" "_screencasts/$DATE-$SLUG.md")" + # shellcheck disable=2086 mktorrent $TRACKERS \ -f \ -v \ -- cgit v1.2.3