fix append_or_replace when regex contains \t

This commit is contained in:
pvincent
2025-12-17 21:43:24 +04:00
parent 7930b7090a
commit 99161939ef
+1 -1
View File
@@ -10,7 +10,7 @@ REGEX=$1
STRING=$2 STRING=$2
FILE=$3 FILE=$3
if ! grep -Eq "$REGEX" "$FILE"; then if ! grep -Pq "$REGEX" "$FILE"; then
builtin echo -e "$STRING" >>"$FILE" builtin echo -e "$STRING" >>"$FILE"
echo 'appended' echo 'appended'
else else