diff --git a/Lightcord_installer.sh b/Lightcord_installer.sh index 98ac183..c3dee72 100644 --- a/Lightcord_installer.sh +++ b/Lightcord_installer.sh @@ -174,4 +174,19 @@ case $selection in printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n"; ;; esac - \ No newline at end of file + +#ask the user if the script should not delete itself +printf "Do you want to keep the install script? [y/N] "; +read a; + +case $a in + y) + exit; + ;; + Y) + exit; + ;; +esac + +#if the user didn't say yes +rm -f Lightcord_installer.sh;