1.7.4g - updated path in fix_cme

This commit is contained in:
Dewalt 2023-08-08 19:51:09 -05:00
parent 5b41e44ba0
commit 98d017de52
2 changed files with 6 additions and 3 deletions

View File

@ -39,6 +39,9 @@
# Writeups / Honorable Mentions
- ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/
# Revision 1.7.4g - updated path statement for fix_cme
- corrected path statement for fix_cme user function
# Revision 1.7.4f - ssh wide compatibility function
- added function fix_sshwidecompat
- will be ran in menu options N, 0 or 1

View File

@ -9,7 +9,7 @@
# Standard Disclaimer: Author assumes no liability for any damage
# revision var
revision="1.7.4f"
revision="1.7.4g"
# unicorn puke:
red=$'\e[1;31m'
@ -409,7 +409,7 @@ fix_cme() {
if [[ $check_for_local_bin_path -eq 0 ]];
then
echo "export PATH=$HOME/.local/bin:$PATH" >> $HOME/.$getshell"rc"
echo "export PATH=\$HOME/.local/bin:\$PATH" >> $HOME/.$getshell"rc"
else
echo "\n $redexclaim Path already exists for user $findrealuser "
fi
@ -433,7 +433,7 @@ fix_cme() {
if [[ $checkforlocalbinpath -eq 0 ]]
then
runuser $findrealuser $getshell -c 'subshell=$(echo $SHELL | cut -d "/" -f4); echo "export PATH=\$PATH:\$HOME/.local/bin" >> $HOME/.$subshell"rc"'
runuser $findrealuser $getshell -c 'subshell=$(echo $SHELL | cut -d "/" -f4); echo "export PATH=\$HOME/.local/bin:\$PATH" >> $HOME/.$subshell"rc"'
runuser $findrealuser $getshell -c 'subshell=$(echo $SHELL | cut -d "/" -f4); source $HOME/.$subshell"rc"'
else
echo -e "\n $redexclaim Path already exists "