feat(install): ask for doing a backup of configs that are going to be overwritten

you should do a backup if you appreciate your configs 😛
This commit is contained in:
retrozinndev
2025-10-31 19:10:50 -03:00
parent a894f10edb
commit dc4b3b088a
3 changed files with 54 additions and 4 deletions
+9 -1
View File
@@ -46,7 +46,15 @@ echo "Welcome to the colorshell installation script!"
# Warn user of possible issues
Send_log warn "!! By running this script, you assume total responsability for any issues that may occur with your filesystem"
Send_log warn "Your current Hyprland and kitty configuration will be overwritten, please do a backup if you still want them"
[[ -z $skip_prompts ]] && \
Send_log warn "Your current Hyprland and kitty configuration will be overwritten, accept the backup prompt if you still want them"
[[ -z $skip_prompts ]] && \
Ask "Do you want to backup what is going to be modified/overwritten?"
[[ $answer == y ]] || [[ $skip_prompts ]] && \
Backup_config $repo_directory
[[ -z "$skip_prompts" ]] && \
Ask "Do you want to start the shell installation?"