From 85278ea1470ee1f8b14ef3a45709e24617b99196 Mon Sep 17 00:00:00 2001 From: clsty Date: Sun, 19 Oct 2025 15:44:44 +0800 Subject: [PATCH] Ask once instead of 3 times for backup --- sdata/step/3.install-files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdata/step/3.install-files.sh b/sdata/step/3.install-files.sh index 51c436b1d..50b4b5692 100644 --- a/sdata/step/3.install-files.sh +++ b/sdata/step/3.install-files.sh @@ -50,14 +50,14 @@ function backup_clashing_targets(){ } function ask_backup_configs(){ + showfun backup_clashing_targets printf "${STY_RED}" printf "Would you like to backup clashing dirs/files under \"$XDG_CONFIG_HOME\" and \"$XDG_DATA_HOME\" to \"$BACKUP_DIR\"?" read -p "[y/N] " backup_confirm case $backup_confirm in [yY][eE][sS]|[yY]) - showfun backup_clashing_targets - v backup_clashing_targets dots/.config $XDG_CONFIG_HOME "${BACKUP_DIR}/.config" - v backup_clashing_targets dots/.local/share $XDG_DATA_HOME "${BACKUP_DIR}/.local/share" + backup_clashing_targets dots/.config $XDG_CONFIG_HOME "${BACKUP_DIR}/.config" + backup_clashing_targets dots/.local/share $XDG_DATA_HOME "${BACKUP_DIR}/.local/share" ;; *) echo "Skipping backup..." ;; esac