浏览代码

Fix "diff-pr.sh" edge case

Tianon Gravi 6 年之前
父节点
当前提交
8df2fd5d54
共有 1 个文件被更改,包括 1 次插入1 次删除
  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" )