Add distro and arch detect, add skip options

This commit is contained in:
clsty
2025-10-02 00:35:33 +08:00
parent 7aa1230553
commit 852172a7ff
10 changed files with 121 additions and 35 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
# It's not for directly running.
# TODO: make function backup_configs only cover the possibly overwritten ones.
function backup_configs() {
function backup_configs(){
local backup_dir="$BACKUP_DIR"
mkdir -p "$backup_dir"
echo "Backing up $XDG_CONFIG_HOME to $backup_dir/config_backup"
@@ -12,7 +12,7 @@ function backup_configs() {
rsync -av --progress "$HOME/.local/" "$backup_dir/local_backup/"
}
function ask_backup_configs() {
function ask_backup_configs(){
printf "${COLOR_RED}"
printf "Would you like to create a backup for \"$XDG_CONFIG_HOME\" and \"$HOME/.local/\" folders?\n[y/N]: "
read -p " " backup_confirm