diff --git a/tools/append_or_replace b/tools/append_or_replace index cc41a73..7772383 100755 --- a/tools/append_or_replace +++ b/tools/append_or_replace @@ -14,7 +14,7 @@ STRING=$2 FILE=$3 if ! grep -Pq "$REGEX" "$FILE"; then - printf "$STRING\n" >>$FILE + printf "%s\n" "$STRING" >>$FILE echo appended else sed -i "s|$REGEX|$STRING|g" $FILE