From 6dab6dc87bd2e4920cc0894ab82def0891f6c805 Mon Sep 17 00:00:00 2001 From: qo-op Date: Fri, 12 Mar 2021 02:03:09 +0100 Subject: [PATCH] ipfs + key check --- zen/bash_template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zen/bash_template.sh b/zen/bash_template.sh index 4e0c08e..a59b936 100755 --- a/zen/bash_template.sh +++ b/zen/bash_template.sh @@ -8,8 +8,8 @@ MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized 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 -IPFSNODEID=$(ipfs id -f='\n') G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) && [[ ! $G1PUB ]] && echo "ERREUR G1PUB. EXIT" && exit 1 +IPFSNODEID=$(ipfs id -f='\n')