From 9ad4b1687e926e5e14f5cd3ab2ffb548045761d7 Mon Sep 17 00:00:00 2001 From: H0mire Date: Fri, 3 May 2024 19:42:13 +0200 Subject: [PATCH] removed unnecessary loop --- update-dots.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/update-dots.sh b/update-dots.sh index e23090c1..b637f0db 100644 --- a/update-dots.sh +++ b/update-dots.sh @@ -89,18 +89,3 @@ for folder in "${folders[@]}"; do done done -# Add the new files, because maybe the update added new files -for folder in "${folders[@]}"; do - # Find all files (including those in subdirectories) and copy them - find "$folder" -type f -print0 | while IFS= read -r -d '' file; do - if [[ ! -f "$HOME/$file" ]] && ! file_in_exclude_folders "$file"; then - echo "Adding new file: $file" - # Construct the destination path - destination="$HOME/$file" - # Copy the file - cp -rf "$base/$file" "$destination" - fi - done -done - -