From b9f7b3feba9bf5a83554904036526861e716dece Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 3 Apr 2021 23:05:42 +0200 Subject: [PATCH] AXID & XZUID template header for creating new script --- zen/bash_template.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zen/bash_template.sh b/zen/bash_template.sh index a59b936..8dc21a2 100755 --- a/zen/bash_template.sh +++ b/zen/bash_template.sh @@ -10,6 +10,9 @@ ME="${0##*/}" YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) && [[ ! $YOU ]] && echo "ipfs NOT RUNNING. EXIT" && exit 1 G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) && [[ ! $G1PUB ]] && echo "ERREUR G1PUB. EXIT" && exit 1 IPFSNODEID=$(ipfs id -f='\n') +[[ -f ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid ]] && AXID=$(cat ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid); +[[ -f ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title ]] && XZUID=$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title) +