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