#!/bin/bash [[ ! $1 ]] && echo "You must provide 'qo-op' IPNS key"&& exit 1 # echo create data set to include into tagcloud # HERE YOU CAN MODIFY HOMEPAGE TAGCLOUD PROPERTIES DATA="" for channel in $(ls ~/.zen/bunkerbox/channels); do howmuch=$(jq '.Videos | length' ~/.zen/bunkerbox/history.${channel}.json) DATA="$DATA { name: '"${channel}"', link: '"/ipns/$1/tw/${channel}"', weight: "${howmuch}", tooltip: '"${channel}"' }," done echo 'data: [ '$DATA' ]'