diff --git a/update-dots.sh b/update-dots.sh index ba67ad32..dd88a4a2 100644 --- a/update-dots.sh +++ b/update-dots.sh @@ -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\" ..."