mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 15:35:43 +08:00
Merge pull request #596 from pxgamer/feature/fix-omf-new-year
Fix 'omf new' year in LICENSE files
This commit is contained in:
commit
a845d19478
|
@ -23,7 +23,8 @@ function __omf.packages.new.from_template -a path github user name
|
|||
echo (basename "$file")
|
||||
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
|
||||
echo (omf::em)" create "(omf::off)" "(begin
|
||||
if test (basename $PWD) = $name
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
Loading…
Reference in New Issue
Block a user