diff options
-rw-r--r-- | scripts/update-patches | 2 | ||||
-rw-r--r-- | scripts/update-patches2 | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/scripts/update-patches b/scripts/update-patches index 438cba2e1..3d5424ff0 100644 --- a/scripts/update-patches +++ b/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" diff --git a/scripts/update-patches2 b/scripts/update-patches2 index 2b8349bcf..5b95f33f9 100644 --- a/scripts/update-patches2 +++ b/scripts/update-patches2 @@ -22,6 +22,7 @@ PATCH_LIST='patch-* *.patch' CURDIR=$PWD export CURDIR PATCH_LIST +rm -f patches/*.new mksh "${TOPDIR}"/scripts/update-patches |& first=1 set -A toedit |