1.7.4e code cleanup

This commit is contained in:
Dewalt 2023-08-05 06:51:28 -05:00
parent cc30cd78bd
commit f2abea8cd8
1 changed files with 3 additions and 1 deletions

View File

@ -386,6 +386,7 @@ fix_cme() {
sudo apt -y remove crackmapexec sudo apt -y remove crackmapexec
fi fi
# root installation
if [[ $findrealuser == "root" ]]; if [[ $findrealuser == "root" ]];
then then
echo -e "\n Starting $findrealuser user installation" echo -e "\n Starting $findrealuser user installation"
@ -402,11 +403,12 @@ fix_cme() {
then then
echo "export PATH=$PATH:$HOME/.local/bin" >> $HOME/.$getshell"rc" echo "export PATH=$PATH:$HOME/.local/bin" >> $HOME/.$getshell"rc"
else else
echo "\n $redexclaim Path is already exists for user $findrealuser " echo "\n $redexclaim Path already exists for user $findrealuser "
fi fi
fix_cme_symlinks fix_cme_symlinks
fi fi
# user installation
if [[ $findrealuser != "root" ]]; if [[ $findrealuser != "root" ]];
then then
echo -e "\n Starting $findrealuser user installation\n" echo -e "\n Starting $findrealuser user installation\n"