From 8ef4bf3ddafb1e4afb0dae04a05562081ae2aa1f Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 10 May 2025 17:52:42 -0400 Subject: [PATCH] clean up echo spam --- crediting/credit.sh | 4 +++- yt-data-pull.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crediting/credit.sh b/crediting/credit.sh index 538ffba..4e096a8 100755 --- a/crediting/credit.sh +++ b/crediting/credit.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo $1 + SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) WORKING=$PWD @@ -63,4 +65,4 @@ while read p || [[ -n $p ]]; do # and if you want a 1:1 scale image i don't know what the *fuck* it's doing with an origin point. convert cs2.png "c$i.png" rm cs1.png cs2.png "$SCRIPT_DIR/credit2.html" -done < $1 \ No newline at end of file +done < "$1" \ No newline at end of file diff --git a/yt-data-pull.sh b/yt-data-pull.sh index 436d4d8..77b87ef 100755 --- a/yt-data-pull.sh +++ b/yt-data-pull.sh @@ -40,7 +40,7 @@ touch done.txt while read cid do - echo "cid: --> $cid." + #echo "cid: --> $cid." if grep "$cid" done.txt then #already seen @@ -48,7 +48,7 @@ do else cat info.json | jq .comments[] | jq 'select(.id=="'$cid'")'>thiscomment.json echo $cid >>done.txt - message="[YT]/[$(cat info.json | jq -r .title)]/[$(cat thiscomment.json | jq -r .author)]: $(cat thiscomment.json | jq -r .text)" + message="[$(cat info.json | jq -r .title)]/[$(cat thiscomment.json | jq -r .author)]: $(cat thiscomment.json | jq -r .text)" rm thiscomment.json chat $message fi