fix: configure Git email

pull/6/head
Aravinth Manivannan 2022-04-16 08:22:23 +05:30
parent 7812cc6477
commit 9a0c290709
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 6 additions and 1 deletions

View File

@ -91,6 +91,8 @@ clean() {
# $1: branch name
# $2: directory containing build assets
# $3: Author in <author-name author@example.com> format
# $3: Author in <author-name author@example.com> format
deploy() {
cd $PROJECT_ROOT
tmp_dir=$(mktemp -d)
@ -99,7 +101,10 @@ deploy() {
git rm -rf .
/bin/rm -rf *
cp -r $tmp_dir/* .
git add --all && git commit -m "new deploy: $(date --iso-8601=seconds)"
git add --all
git commit \
--author="$3" \
--message="new deploy: $(date --iso-8601=seconds)"
}
check_arg $1