소스 검색

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" )