diff options
Diffstat (limited to 'quilt/scripts/patchfns.in')
-rw-r--r-- | quilt/scripts/patchfns.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/quilt/scripts/patchfns.in b/quilt/scripts/patchfns.in index 172e2b1..4f56201 100644 --- a/quilt/scripts/patchfns.in +++ b/quilt/scripts/patchfns.in @@ -594,9 +594,11 @@ files_in_patch() if [ -d "$path" ] then - find "$path" -type f \ - -a ! -path "$path/.timestamp" \ - -printf "%P\n" + local files + files=( $(find "$path" -type f \ + -a ! -path "$path/.timestamp") ) \ + || return 1 + printf "%s\n" "${files[@]#$path/}" fi } |