clean up echo spam
This commit is contained in:
parent
d36492d160
commit
8ef4bf3dda
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo $1
|
||||||
|
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
WORKING=$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.
|
# 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"
|
convert cs2.png "c$i.png"
|
||||||
rm cs1.png cs2.png "$SCRIPT_DIR/credit2.html"
|
rm cs1.png cs2.png "$SCRIPT_DIR/credit2.html"
|
||||||
done < $1
|
done < "$1"
|
@ -40,7 +40,7 @@ touch done.txt
|
|||||||
|
|
||||||
while read cid
|
while read cid
|
||||||
do
|
do
|
||||||
echo "cid: --> $cid."
|
#echo "cid: --> $cid."
|
||||||
if grep "$cid" done.txt
|
if grep "$cid" done.txt
|
||||||
then
|
then
|
||||||
#already seen
|
#already seen
|
||||||
@ -48,7 +48,7 @@ do
|
|||||||
else
|
else
|
||||||
cat info.json | jq .comments[] | jq 'select(.id=="'$cid'")'>thiscomment.json
|
cat info.json | jq .comments[] | jq 'select(.id=="'$cid'")'>thiscomment.json
|
||||||
echo $cid >>done.txt
|
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
|
rm thiscomment.json
|
||||||
chat $message
|
chat $message
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user