$(whoami)

This commit is contained in:
qo-op 2020-05-11 07:50:53 +02:00
parent 261ff28d48
commit daa89ece9a
1 changed files with 2 additions and 2 deletions

View File

@ -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
"