Fix diff-pr globbing on images that do "COPY ./..." (like neo4j)

This commit is contained in:
Tianon Gravi 2019-04-09 15:37:28 -07:00
parent 145627aae8
commit 48c82ce313
1 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,9 @@ copy-tar() {
local globbed local globbed
# "find: warning: -path ./xxx/ will not match anything because it ends with /." # "find: warning: -path ./xxx/ will not match anything because it ends with /."
globbed=( $(cd "$dDir" && find -path "./${f%/}") ) local findGlobbedPath="${f%/}"
findGlobbedPath="${f#./}"
globbed=( $(cd "$dDir" && find -path "./$findGlobbedPath") )
if [ "${#globbed[@]}" -eq 0 ]; then if [ "${#globbed[@]}" -eq 0 ]; then
globbed=( "$f" ) globbed=( "$f" )
fi fi