From 16abdd2dc64076e3dc25ccbdb04fdd823368ffc2 Mon Sep 17 00:00:00 2001 From: Lord_Devi Date: Tue, 9 Jul 2024 04:39:44 -0400 Subject: [PATCH] Working. --- setup-dotz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-dotz.sh b/setup-dotz.sh index 70f998a..1d0ead3 100755 --- a/setup-dotz.sh +++ b/setup-dotz.sh @@ -122,7 +122,7 @@ _move_old_init_to_backup() { "${HOME}/.bashrc") for file in "${_init_file[@]}" ; do - if [ -f "$file" ]; then + if [ -f "$file" ] && [ ! -L "$file" ]; then _mordu "Found existing ${file}, moving to ${file}.bak." mv "$file" "$file.bak" fi