From 049b22794c85f472b16954af6ad03237c528b69b Mon Sep 17 00:00:00 2001 From: Daniel Khamsing Date: Thu, 28 Jul 2016 13:42:39 -0700 Subject: [PATCH] [script] update license display --- .github/osia_convert.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/osia_convert.rb b/.github/osia_convert.rb index eb5c4b6a..7e2a3ac7 100644 --- a/.github/osia_convert.rb +++ b/.github/osia_convert.rb @@ -85,8 +85,9 @@ def output_apps(apps) details_list.push "Added #{formatted_date}" end - unless license.nil? - details_list.push "License: [`#{license}`](http://choosealicense.com/licenses/#{license}/)" if license != 'other' + unless license.nil? + license_display = license=='other'? "`#{license}`" : "[`#{license}`](http://choosealicense.com/licenses/#{license}/)" + details_list.push "License: #{license_display}" end unless homepage.nil?