Skip to content

Commit

Permalink
fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Dec 20, 2017
1 parent 0a3b1a3 commit 743f681
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ghlicense/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ def print_license_list():
'\n\n UNLICENSE\n'
'\tReleases code into the public domain.'
'\n\n MIT\n'
'\tA short, permissive software license.\n\n')
'\tA short, permissive software license.'
'\n\n EUPL\n'
'\tThe “European Union Public Licence” (EUPL) The EUPL is the first\n'
'\tEuropean Free/Open Source Software (F/OSS) licence. It has been\n'
'\tcreated on the initiative of the European Commission.\n\n')


def main():
Expand Down Expand Up @@ -388,6 +392,9 @@ def main():
elif chosen_license == 'MIT':
update_license("https://spdx.org/licenses/MIT.txt", chosen_license,
'(https://img.shields.io/badge/License-MIT%20v1-blue.svg)](https://spdx.org/licenses/MIT.html#licenseText)')
elif chosen_license == 'EUPL':
update_license("https://joinup.ec.europa.eu/sites/default/files/inline-files/EUPL%20v1_2%20EN(1).txt", chosen_license,
'(https://img.shields.io/badge/License-EUPL%20v1.1-blue.svg)](https://joinup.ec.europa.eu/page/eupl-guidelines-faq-infographics)')
else:
print('License {license} not found!'.format(license=chosen_license))
sys.exit(1)
Expand Down

0 comments on commit 743f681

Please sign in to comment.