leo/.circleci/leo-new.sh
damirka f3c97390ee adds name substitution on leo new and init
- only adds a name if user is already logged in
- if not, puts [AUTHOR] as it was previously
- before publishing author field is checked in Leo.toml and better error message returned
2021-04-12 16:54:37 +03:00

10 lines
254 B
Bash
Executable File

$LEO new hello-world
ls -la
cd hello-world && ls -la
# verify that in Leo.toml there's a placeholder for author
# because at the time of calling `leo new` user is not logged in
[[ $(cat Leo.toml | grep "\[AUTHOR\]" | wc -l) -eq 1 ]] || exit 1
$LEO run