fix number 2

This commit is contained in:
H0mire 2024-05-06 22:27:35 +02:00
parent 45a5d18245
commit 6ef065aed8

View file

@ -211,7 +211,7 @@ for folder in "${folders[@]}"; do
mkdir -p "$HOME/$file"
fi
# Check if the file is a regular file and not in the exclude_folders
if [[ -f "$temp_folder/$file" ]] && ! file_in_excludes "$file" && [[! " ${modified_files[@]} " =~ " ${file} " ]]; then
if [[ -f "$file" ]] && ! file_in_excludes "$file" && [[ ! " ${modified_files[@]} " =~ " ${file} " ]]; then
# Construct the destination path
destination="$HOME/$file"
echo "Replacing \"$destination\" ..."