Last active
December 6, 2016 05:18
-
-
Save itiut/a7154b27cdfb2d639367bfb2245a0bc3 to your computer and use it in GitHub Desktop.
Generate a MIT License file named LICENSE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
curl -s -H 'Accept:application/vnd.github.drax-preview+json' https://api.github.com/licenses/mit \ | |
| jq -j '.body' \ | |
| sed "s/\[year\]/$(date +%Y)/;s/\[fullname\]/$(git config --get user.name)/" \ | |
> LICENSE.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment