fix template generator using incorrect variable USERNAME → USER

This commit is contained in:
Jorge Bucaran 2015-08-27 10:28:00 +09:00
parent aa8a770dea
commit a1c319db73

View File

@ -18,10 +18,10 @@ function omf_new -a option name
cd $dir
set -l github (git config github.user)
test -z "$github"; and set github "{{USERNAME}}"
test -z "$github"; and set github "{{USER}}"
set -l user (git config user.name)
test -z "$user"; and set user "{{USERNAME}}"
test -z "$user"; and set user "{{USER}}"
omf_new_from_template "$OMF_PATH/pkg/omf/templates/$option" \
$github $user $name