From 8d6a7474be0e2c8355c5f3ea8af19b137e487a01 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 7 Apr 2022 16:58:11 +0200 Subject: [PATCH] LOOP THROUGH (REVERSE LIST) --- crowdbunker.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crowdbunker.sh b/crowdbunker.sh index a9ff649..cd30b82 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -30,8 +30,9 @@ echo "IPFS GATEWAY $IPFSNGW" VWALLURL="https://api.crowdbunker.com/post/all" curl -s $VWALLURL -H "Accept: application/json" > ~/.zen/bunkerbox/crowd.json -## LOOP THROUGH -for VUID in $(cat ~/.zen/bunkerbox/crowd.json | jq -r '.posts | .[] | .video.id'); do +## LOOP THROUGH (REVERSE LIST) +cat ~/.zen/bunkerbox/crowd.json | jq -r '.posts | .[] | .video.id' > /tmp/vuid.list +for VUID in $(tac /tmp/vuid.list); do [[ "$VUID" == "null" ]] && echo "MESSAGE... Bypassing..." && echo && continue echo "Bunker BOX : Adding $VUID" mkdir -p ~/.zen/bunkerbox/$VUID/media