mirror of
https://github.com/Lightcord/Lightcord.git
synced 2025-04-12 00:55:40 +02:00
Merge pull request #102 from GermanBread/patch-2
add an option to delete the script after use
This commit is contained in:
commit
7512a31faf
@ -174,4 +174,19 @@ case $selection in
|
|||||||
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n";
|
printf "[$(tput setaf 12 && tput blink)INFO$(tput sgr0)] $(tput setaf 12)Exiting script$(tput sgr0)\n";
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
#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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user