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