From 86e0e3c62349dfb43e66a78a57cf7110ef577a0f Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Sat, 3 May 2014 11:37:49 +0000 Subject: use find -print0 with proper shell handling Signed-off-by: Thorsten Glaser --- scripts/update-patches | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/update-patches b/scripts/update-patches index 1d13a3901..ee580c5cf 100644 --- a/scripts/update-patches +++ b/scripts/update-patches @@ -90,7 +90,9 @@ fi DIFF_FLAGS="-adu -I \"^--- $(print -r -- "$D_SUBP.orig/" | $TRANSFORM)@@ .*\"" DIFF_FLAGS="$DIFF_FLAGS -I \"^\+\+\+ $(print -r -- "$D_SUBP/" | $TRANSFORM)@@ .*\"" -for file in $(cd ${WRKDIST}; find . -type f | sed 's#^\./##'); do +(cd "${WRKDIST}"; find . -type f -print0) |& +while IFS= read -p -d '' -r file; do + file=${file#./} #print -r -- "DEBUG: <$file>" >>/tmp/debug [[ ! -e $ORGDIST/$file && $patch_newfiles = 0 ]] && continue [[ $file = configure && $ignore_autoconf = 1 ]] && continue -- cgit v1.2.3