diff --git a/symlinks.sh b/symlinks.sh index 27c4584..bf22f8a 100755 --- a/symlinks.sh +++ b/symlinks.sh @@ -16,7 +16,8 @@ for DIR in "${!DIRS[@]}"; do TARGET="${DIRS[$DIR]}" if [ -e "$TARGET" ]; then - rm -rf "$TARGET" + echo "Warning: $TARGET already exists, skipping..." + continue fi ln -sf "$DOTFILES_DIR/$DIR" "$TARGET"