diff --git a/crowdbunker.sh b/crowdbunker.sh index 4be444d..f8b73f8 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -126,7 +126,7 @@ echo "########################################################################## # qo-op get latest history.json if [[ "$(cat ~/.zen/bunkerbox/choice 2>/dev/null)" == "qo-op" ]]; then - IPNSL="/ipns/$(cat ~/.zen/bunkerbox/qo-op)" + IPNSL="/ipns/$(ipfs key list -l | grep 'qo-op' | cut -f 1 -d ' ')" ipfs get -o ~/.zen/bunkerbox/history_qo-op.json $IPNSL/history.json # Get actual IPNS qo-op history.json [[ $(cat ~/.zen/bunkerbox/history_qo-op.json | jq .Videos[].link | grep $VUID) ]] && echo "VIDEO DEJA DANS IPFS... CONTINUE" && echo && cp ~/.zen/bunkerbox/history_qo-op.json ~/.zen/bunkerbox/history.json && continue # JSON FUSION