removed unnecessary loop

This commit is contained in:
H0mire 2024-05-03 19:42:13 +02:00
parent e5f432534a
commit 9ad4b1687e

View file

@ -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