diff --git a/modules/home/terminal/hr/hr.sh b/modules/home/terminal/hr/hr.sh index 7edf3f5..f4f6f8b 100644 --- a/modules/home/terminal/hr/hr.sh +++ b/modules/home/terminal/hr/hr.sh @@ -75,7 +75,7 @@ EOF ) for file in "${IGNORES[@]}"; do - if ! grep -q "^$file$" "$EXCLUDE_FILE"; then + if ! grep -Fxq "$file" "$EXCLUDE_FILE" 2>/dev/null; then echo "$file" >>"$EXCLUDE_FILE" echo "Added $file to local git exclude ($EXCLUDE_FILE)" fi