$(whoami)
This commit is contained in:
parent
261ff28d48
commit
daa89ece9a
|
@ -10,7 +10,7 @@ MY_PATH="`dirname \"$0\"`" # relative
|
|||
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
|
||||
if [[ $(whoami) == $YOU ]]; then
|
||||
IPFSNODEID=$(ipfs id -f='<id>\n')
|
||||
else
|
||||
# CASE root
|
||||
|
@ -42,7 +42,7 @@ $NANODATE
|
|||
/_/_/ /_/_/\__/ /_/|_|\___/\__, /____/
|
||||
/____/
|
||||
|
||||
I am $USER on $IPFSNODEID
|
||||
I am $(whoami) on $IPFSNODEID
|
||||
|
||||
"
|
||||
|
||||
|
|
Loading…
Reference in New Issue