From d6fe6d8f962f562bcfa0cfe641a00594a53c7f5a Mon Sep 17 00:00:00 2001 From: pvincent Date: Sun, 19 Jun 2022 21:26:43 +0400 Subject: [PATCH] fix: append_or_replace with tabs --- tools/append_or_replace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/append_or_replace b/tools/append_or_replace index ebf5320..3c01c2c 100755 --- a/tools/append_or_replace +++ b/tools/append_or_replace @@ -14,7 +14,7 @@ STRING=$2 FILE=$3 if ! grep -Eq "$REGEX" "$FILE"; then - printf "%s\n" "$STRING" >>$FILE + printf "$STRING\n" >>$FILE echo appended else sed -Ei "s|$REGEX|$STRING|g" $FILE