IPFSNODEID

This commit is contained in:
qo-op 2020-05-11 07:43:16 +02:00
parent 632ca11e8c
commit 261ff28d48
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1);
if [[ $USER == $YOU ]]; then
IPFSNODEID=$(ipfs id -f='<id>\n') \
IPFSNODEID=$(ipfs id -f='<id>\n')
else
# CASE root
IPFSNODEID=$(su $YOU -c "ipfs id -f='<id>\n'")
@ -42,7 +42,7 @@ $NANODATE
/_/_/ /_/_/\__/ /_/|_|\___/\__, /____/
/____/
I am $YOU on $IPFSNODEID
I am $USER on $IPFSNODEID
"