From a5668203bae69e565bb2f9f18fb07f5645ef4951 Mon Sep 17 00:00:00 2001 From: eric5949 Date: Thu, 23 Apr 2026 20:48:38 -0400 Subject: [PATCH] Update makefortune.sh --- makefortune.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefortune.sh b/makefortune.sh index 8521831..b7518cd 100644 --- a/makefortune.sh +++ b/makefortune.sh @@ -16,9 +16,9 @@ CURLURL="https://vocadb.net/api/songs?songTypes=Original&afterDate=${AFTERDATE}& echo "CURLURL: $CURLURL" DATA=$(curl -X 'GET' \ $CURLURL \ - -H 'accept: application/json' | tr -d '\000-\037') + -H 'accept: application/json') # making sure there are songs to add. -SONGS=$(echo "$DATA" | jq -r '.items | length') +SONGS=$(echo "$DATA" | jq -c '.items | length') if [ "$SONGS" -eq 0 ]; then echo "Result is empty. No more songs." exit 0