From 0c4cb4cb07ce09d8afefa2a14bc74b46c9c2a96c Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Wed, 12 May 2021 06:25:45 +0500 Subject: [PATCH] bruh....youretarded --- bml-tg-notify/bml-tg-notify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bml-tg-notify/bml-tg-notify.sh b/bml-tg-notify/bml-tg-notify.sh index e38e2ad..9b9d75b 100755 --- a/bml-tg-notify/bml-tg-notify.sh +++ b/bml-tg-notify/bml-tg-notify.sh @@ -26,10 +26,10 @@ curl -s -b $COOKIE $BML_URL/profile > /dev/null while true; do CHECKDIFF1=$(echo $HISTORY | wc -c) HISTORY=$(curl -s -b $COOKIE $BML_URL/account/$BML_ACCOUNTID/history/today | jq -r '.payload | .history | .[]') +CHECKDIFF2=$(echo $HISTORY | wc -c) if [ "$CHECKDIFF1" = "$CHECKDIFF2" ] then echo nothing new..checking again - CHECKDIFF2=$(echo $HISTORY | wc -c) else TRANSFERAMOUNT=$(echo $HISTORY | jq -r .amount | head -n1) TRANFERFROM=$(echo $HISTORY | jq -r .narrative3 | head -n1)