From f61936d9b4843996480b3dc59c64ab5c4d165568 Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 8 Feb 2024 15:33:28 +0900 Subject: [PATCH] fix --- scpt/notify.zsh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 scpt/notify.zsh diff --git a/scpt/notify.zsh b/scpt/notify.zsh deleted file mode 100755 index 594aba7..0000000 --- a/scpt/notify.zsh +++ /dev/null @@ -1,27 +0,0 @@ -function notify() { - url=https://$host/xrpc/app.bsky.notification.listNotifications - if [ ! -f $d/notify.json ];then - curl -sL "Content-Type: application/json" -H "Authorization: Bearer $token" "$url?limit=100" >! $d/notify.json - fi - #cat $d/notify.json - - for ((i=0;i<=99;i++)) - do - cid=`cat $d/notify.json|jq ".|.[].[$i]?|.cid?"` - uri=`cat $d/notify.json|jq ".|.[].[$i]?|.uri?"` - echo $cid - echo $uri - cid_r=`cat $d/notify.json|jq ".[]|.[$i]?|.record.reply.root.cid?"` - - if [ "$cid_r" = "null" ];then - continue - fi - uri_r=`cat $d/notify.json|jq ".[]|.[$i]?|.record.reply.root.uri?"` - cid_p=`cat $d/notify.json|jq ".[]|.[$i]?|.record.reply.parent.cid?"` - uri_p=`cat $d/notify.json|jq ".[]|.[$i]?|.record.reply.parent.uri?"` - echo $cid_r - echo $uri_r - echo $cid_p - echo $uri_p - done -}