Commit a845d194 authored by Justin Hileman's avatar Justin Hileman Committed by GitHub

Merge pull request #596 from pxgamer/feature/fix-omf-new-year

Fix 'omf new' year in LICENSE files
parents e23739d3 c78ce176
...@@ -23,7 +23,8 @@ function __omf.packages.new.from_template -a path github user name ...@@ -23,7 +23,8 @@ function __omf.packages.new.from_template -a path github user name
echo (basename "$file") echo (basename "$file")
end end
end) end)
sed "s/{{USER_NAME}}/$user/;s/{{GITHUB_USER}}/$github/;s/{{NAME}}/$name/" \ set -l year (date +%Y)
sed "s/{{USER_NAME}}/$user/;s/{{GITHUB_USER}}/$github/;s/{{NAME}}/$name/;s/{{YEAR}}/$year/" \
$file > $target $file > $target
echo (omf::em)" create "(omf::off)" "(begin echo (omf::em)" create "(omf::off)" "(begin
if test (basename $PWD) = $name if test (basename $PWD) = $name
......
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2016 {{USER_NAME}} Copyright (c) {{YEAR}} {{USER_NAME}}
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2016 {{USER_NAME}} Copyright (c) {{YEAR}} {{USER_NAME}}
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment