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

remotes/origin/4.7
Darko Poljak 7 years ago committed by GitHub
parent d7120d352c
commit 4f5dddd9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cdist/conf/type/__line/gencode-remote

@ -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"

Loading…
Cancel
Save