clean up echo spam
This commit is contained in:
parent
d36492d160
commit
8ef4bf3dda
@ -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
|
||||
done < "$1"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user