From daa89ece9a3df71afad0d79d064a3a135580a775 Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 11 May 2020 07:50:53 +0200 Subject: [PATCH] $(whoami) --- g1sms/init_keys.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g1sms/init_keys.sh b/g1sms/init_keys.sh index 3768514..78573ca 100755 --- a/g1sms/init_keys.sh +++ b/g1sms/init_keys.sh @@ -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='\n') else # CASE root @@ -42,7 +42,7 @@ $NANODATE /_/_/ /_/_/\__/ /_/|_|\___/\__, /____/ /____/ -I am $USER on $IPFSNODEID +I am $(whoami) on $IPFSNODEID "