Browse Source

fix: append_or_replace with tabs

master
pvincent 2 years ago
parent
commit
d6fe6d8f96
  1. 2
      tools/append_or_replace

2
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

Loading…
Cancel
Save