✨ 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:
+9
-1
@@ -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?"
|
||||
|
||||
Reference in New Issue
Block a user