diff --git a/README.md b/README.md index 5ba22fe..8ee800e 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,9 @@ sudo ./pimpmykali.sh # Writeups / Honorable Mentions - ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/ +# Revision 1.7.9a2 - updated exit_screen function + - function modified to re-source logged in user ~/nameofshellrc + # Revision 1.7.9a1 - netexec - updated installation to use pipx - created new function to ensure symlinks are created diff --git a/pimpmykali.sh b/pimpmykali.sh index 37f6e01..ffce77b 100755 --- a/pimpmykali.sh +++ b/pimpmykali.sh @@ -9,7 +9,7 @@ # Standard Disclaimer: Author assumes no liability for any damage # revision var - revision="1.7.9a1" + revision="1.7.9a2" # unicorn puke: red=$'\e[1;31m' @@ -2479,6 +2479,9 @@ exit_screen() { eval apt -y --fix-broken install >/dev/null 2>&1 echo -e "$asciiart" echo -e "\n\n All Done! Happy Hacking! \n" + findrealuser=$(logname) + getshell=$(echo $SHELL | cut -d "/" -f4) + runuser $findrealuser $getshell -c 'subshell=$(echo $SHELL | cut -d "/" -f4); source $HOME/.$subshell"rc"' exit } @@ -2486,4 +2489,3 @@ check_for_root check_distro check_arg "$1" exit_screen -