Update Fri Jan 21 10:03:12 PM CST 2022

This commit is contained in:
Dewalt 2022-01-21 22:03:12 -06:00
parent 7fc40f285e
commit 1af180e25e
1 changed files with 5 additions and 2 deletions

View File

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