From 6ef065aed81c4548b79e2a8b71e4dcdaa9b4ef7e Mon Sep 17 00:00:00 2001 From: H0mire Date: Mon, 6 May 2024 22:27:35 +0200 Subject: [PATCH] fix number 2 --- update-dots.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\" ..."