From 1af180e25e80375e76928c3a56c41361fc9e8498 Mon Sep 17 00:00:00 2001 From: Dewalt <> Date: Fri, 21 Jan 2022 22:03:12 -0600 Subject: [PATCH] Update Fri Jan 21 10:03:12 PM CST 2022 --- pimpmykali.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pimpmykali.sh b/pimpmykali.sh index 8ba8c7c..6fd92ac 100755 --- a/pimpmykali.sh +++ b/pimpmykali.sh @@ -9,7 +9,7 @@ # Standard Disclaimer: Author assumes no liability for any damage # revision var - revision="1.4.1" + revision="1.4.2" # unicorn puke: red=$'\e[1;31m' @@ -552,7 +552,10 @@ fix_golang () { } fix_go_path() { - findrealuser=$(who | awk '{print $1}') + findrealuser=$(who | grep "(\:0)" | awk '{print $1}') + # Gonski Fix comes up with 'kali kali' on original who | awk statement + # think about this, do a grep on tty0-9? or just grab (:0) for display 0... thinking the latter is the better idea + # rather than multiple possible tty's if [ $findrealuser == "root" ] then check_root_zshrc=$(cat /root/.zshrc | grep -c GOPATH)