From fd59f75d39d73bfc1d40b7d234ab45166c8da8b8 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 8 Apr 2022 19:36:33 +0200 Subject: [PATCH] do not looze qo-op --- crowdbunker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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