diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-07-05 18:59:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-07-05 18:59:06 +0900 |
commit | 358f91bf6f9999ba4683f702bc47483789bd4e7e (patch) | |
tree | c81cd98acb3dd647b63aa1f2e99ad75d3053c63b /tool/make-snapshot | |
parent | 41168f69fbeb32cfc88210911d62e419b8116589 (diff) |
Skip comment and empty lines in gems/bundled_gems file
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index 79289d6bfb..609f455435 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -502,6 +502,7 @@ touch-unicode-files: if File.exist?("gems/bundled_gems") gems = Dir.glob("gems/*.gem") gems -= File.readlines("gems/bundled_gems").map {|line| + next if /^\s*(?:#|$)/ =~ line name, version, _ = line.split(' ') "gems/#{name}-#{version}.gem" } |