Browse Source

Fix "diff-pr.sh" edge case

Tianon Gravi 6 năm trước cách đây
mục cha
commit
8df2fd5d54
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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" )