no need to double escape a trailing $; $ by itself is not special in any way

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/random_dot_cdist
Steven Armstrong 11 years ago
parent fff5e48266
commit 3dbe375837
  1. 2
      cdist/conf/type/__block/gencode-remote

@ -46,7 +46,7 @@ tmpfile=\$(mktemp ${file}.cdist.XXXXXXXXXX)
if [ -f "$file" ]; then if [ -f "$file" ]; then
cp -p "$file" "\$tmpfile" cp -p "$file" "\$tmpfile"
fi fi
awk -v prefix="^$prefix\\\$" -v suffix="^$suffix\\\$" ' awk -v prefix="^$prefix\$" -v suffix="^$suffix\$" '
{ {
if (match(\$0,prefix)) { if (match(\$0,prefix)) {
triggered=1 triggered=1

Loading…
Cancel
Save