Commit 652d5e34 authored by pxgamer's avatar pxgamer

Fix setting the variable for 'year'

parent f8727bef
...@@ -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/;s/{{YEAR}}/${date +%y}/" \ 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
......
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