Explorar o código

Fix "diff-pr.sh" edge case

Tianon Gravi %!s(int64=6) %!d(string=hai) anos
pai
achega
8df2fd5d54
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      diff-pr.sh

+ 1 - 1
diff-pr.sh

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