Skip to content

Commit b305df8

Browse files
committed
Skip sync failure when we specified old version
1 parent 30fda41 commit b305df8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tool/sync_default_gems.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ def sync_default_gems(gem)
277277
cp_r("#{upstream}/ext/strscan", "ext")
278278
cp_r("#{upstream}/test/strscan", "test")
279279
cp_r("#{upstream}/strscan.gemspec", "ext/strscan")
280-
cp_r("#{upstream}/doc/strscan", "doc")
280+
begin
281+
cp_r("#{upstream}/doc/strscan", "doc")
282+
rescue Errno::ENOENT
283+
end
281284
rm_rf(%w["ext/strscan/regenc.h ext/strscan/regint.h"])
282285
`git checkout ext/strscan/depend`
283286
when "cgi"

0 commit comments

Comments
 (0)