Update Tue Aug 24 04:41:17 AM CDT 2021
This commit is contained in:
parent
2b4c3b84e5
commit
a8a328cd05
|
@ -503,7 +503,7 @@ fix_theharvester () {
|
|||
}
|
||||
|
||||
fix_golang () {
|
||||
section="golang"
|
||||
section="golang" #check this golang or golang-go?
|
||||
check=$(whereis go | grep -i -c "/usr/bin/go")
|
||||
fix_section $section $check $force
|
||||
fix_go_path
|
||||
|
@ -534,7 +534,7 @@ fix_go_path() {
|
|||
fi
|
||||
else
|
||||
check_user_zshrc=$(cat /home/$findrealuser/.zshrc | grep -c GOPATH)
|
||||
[ -d /home/$findrealuser/go ] && echo -e "\n $greenminus go directories already exist in /home/$finduser" || echo -e "\n creating directories /home/$findrealuser/go /home/$findrealuser/go/bin /home/$findrealuser/go/src"; mkdir -p /home/$findrealuser/go/{bin,src}
|
||||
[ -d /home/$findrealuser/go ] && echo -e "\n $greenminus go directories already exist in /home/$finduser" || echo -e "\n $greenplus creating directories /home/$findrealuser/go /home/$findrealuser/go/bin /home/$findrealuser/go/src"; mkdir -p /home/$findrealuser/go/{bin,src}
|
||||
if [ $check_user_zshrc -ne 0 ]
|
||||
then
|
||||
echo -e "\n $redminus GOPATH Variables for user $findrealuser already exist in /home/$findrealuser/.zshrc - Not Changing"
|
||||
|
|
Loading…
Reference in New Issue