From da6e3bc95f7a4113d5f7f78fb0723530b7c56b93 Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 18 May 2021 01:24:07 +0200 Subject: [PATCH] continue --- zen/tools/autoPINfriends.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zen/tools/autoPINfriends.sh b/zen/tools/autoPINfriends.sh index 6466cd6..f9d65b0 100755 --- a/zen/tools/autoPINfriends.sh +++ b/zen/tools/autoPINfriends.sh @@ -16,7 +16,7 @@ G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) # SOURCE: ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB}/${g1node}/.ipfsid.encrypt (new_file_in_astroport.sh) ## AUTO PIN FRIENDS ACTIVATION -for astrofile in $(ls -dt ~/.zen/ipfs_swarm/.12D*/KEY/*/*/${G1PUB}/.ipfsid.encrypt); +for astrofile in $(ls -dt ~/.zen/ipfs_swarm/.12D*/KEY/*/*/${G1PUB}/.ipfsid.encrypt | shuf); do # decrypt $astrofile mediakey=$(echo "$astrofile" | cut -d '/' -f 8 ) @@ -38,6 +38,7 @@ do [[ -d ~/.zen/PIN/${astrofile} ]] && echo "0" > ~/.zen/PIN/${astrofile}/$G1PUB else echo "ALREADY PINNED" + continue fi ## TOOD : DECIDE TO ACTIVATE THIS BEHAVIOUR OR NOT ?