Pārlūkot izejas kodu

quote more for “evil” eval

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 10 gadi atpakaļ
vecāks
revīzija
e8b64ae830
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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"