mirror of
https://github.com/github/choosealicense.com
synced 2025-01-03 10:31:44 +01:00
bare _GPL-x.y files disappeared, take the -only ones
This commit is contained in:
parent
c45561b31a
commit
c83f60c394
@ -14,11 +14,11 @@ config = Jekyll.configuration('source' => site_path)
|
||||
site = Jekyll::Site.new(config)
|
||||
site.read
|
||||
site.collections['licenses'].docs.each do |license|
|
||||
puts "Updating the #{license.data['title']}..."
|
||||
text_file = File.join(text_dir, "#{license.data['spdx-id']}.txt")
|
||||
spdx_text = File.read(text_file)
|
||||
|
||||
license_key = license.data['spdx-id'].downcase
|
||||
puts "Updating the #{license_key}..."
|
||||
only = (license_key.include? 'gpl') ? '-only' : ''
|
||||
text_file = File.join(text_dir, "#{license.data['spdx-id']}#{only}.txt")
|
||||
spdx_text = File.read(text_file)
|
||||
|
||||
if license_key == 'afl-3.0'
|
||||
# https://github.com/spdx/license-list/pull/20
|
||||
|
Loading…
x
Reference in New Issue
Block a user