From 8ad26c7aa16b7a190510b0be4a27ed5ca12333be Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 15 Oct 2022 18:53:56 +0200 Subject: [PATCH] [[ ! $howmuch ]] && continue --- tools/get_tagcloud_data.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/get_tagcloud_data.sh b/tools/get_tagcloud_data.sh index 6272091..a117073 100755 --- a/tools/get_tagcloud_data.sh +++ b/tools/get_tagcloud_data.sh @@ -11,6 +11,7 @@ cp ~/.zen/tmp/chan_cloud_plus.json ~/.zen/tmp/chan_cloud.json for channel in $(ls ~/.zen/bunkerbox/channels); do howmuch=$(jq '.Videos | length' ~/.zen/bunkerbox/history.${channel}.json) + [[ ! $howmuch ]] && continue sed -i "s~_CHANNEL_~$channel~g" ~/.zen/tmp/chan_cloud_plus.json sed -i "s~_HOWMUCH_~$howmuch~g" ~/.zen/tmp/chan_cloud_plus.json