From b66aa23b5661650340eadfb619d305989f7f8eec Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Sat, 3 May 2014 13:00:26 +0000 Subject: delete old temporary files of previous run, in case it aborts Signed-off-by: Thorsten Glaser --- scripts/update-patches2 | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3 From e8b64ae830c3b612899c496317329f09ab31e703 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Sat, 3 May 2014 13:01:07 +0000 Subject: =?UTF-8?q?quote=20more=20for=20=E2=80=9Cevil=E2=80=9D=20eval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thorsten Glaser --- scripts/update-patches | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3