Fix diff-pr globbing on images that do "COPY ./..." (like neo4j)
This commit is contained in:
parent
145627aae8
commit
48c82ce313
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue