Fix for __line containing single quotes: #154. (#594)

This commit is contained in:
Darko Poljak 2017-11-09 08:20:33 +01:00 committed by GitHub
parent d7120d352c
commit 4f5dddd9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ tmpfile=\$(mktemp ${file}.cdist.XXXXXXXXXX)
if [ -f "$file" ]; then
cp -p "$file" "\$tmpfile"
fi
grep -v $greparg '$regex' '$file' > \$tmpfile || true
grep -v $greparg "$regex" '$file' > \$tmpfile || true
mv -f "\$tmpfile" "$file"
eof
echo "removed" >> "$__messages_out"