IPFSNODEID
This commit is contained in:
parent
632ca11e8c
commit
261ff28d48
|
@ -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
|
||||
|
||||
"
|
||||
|
||||
|
|
Loading…
Reference in New Issue