Browse Source

quote more for “evil” eval

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 10 years ago
parent
commit
e8b64ae830
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/update-patches

+ 1 - 1
scripts/update-patches

@@ -157,7 +157,7 @@ while IFS= read -p -d '' -r file; do
 			# did it change? mark it as changed
 			tfile=$(print -r -- "$file" | $TRANSFORM)
 			if eval diff "$(print -r -- "${DIFF_FLAGS}" | sed \
-			    "s#@@#${tfile}#g")" "$i" "$i.new" 1>&2; then
+			    "s#@@#${tfile}#g")" '"$i" "$i.new"' 1>&2; then
 				rm "$i.new"
 			else
 				print -ru2 -- "Patch $i for $file updated"