moved cleanup to the end

This commit is contained in:
RP1 2024-12-22 16:21:41 +01:00
parent f29c94ba2a
commit f842c6d6ea

View file

@ -83,9 +83,6 @@ SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
cp -a /home/$USER/cosmetics/.themes /home/$USER/
set-gdm-theme set Yaru-purple-dark /usr/share/backgrounds/raveos-bg.png
sudo rm /etc/sudoers.d/99-$USER
sudo rm -rf /home/$USER/cosmetics
# Adding Custom rave command
echo ---------------------------------------------
echo Installing ${bold}${yellow}rave command.${normal}
@ -127,6 +124,10 @@ SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
echo ${bold}${yellow}ProgramScript Autostart ${normal}installed.
echo ---------------------------------------------
# Cleanup
sudo rm /etc/sudoers.d/99-$USER
sudo rm -rf /home/$USER/cosmetics
# End of script
echo Reboot in 3s...
echo Reboot in 2s...