[[ ! $howmuch ]] && continue

This commit is contained in:
fred 2022-10-15 18:53:56 +02:00
parent 823a5f758e
commit 8ad26c7aa1
1 changed files with 1 additions and 0 deletions

View File

@ -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