From 9a0c2907096418526cc901eb02794e81dacb530f Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 16 Apr 2022 08:22:23 +0530 Subject: [PATCH] fix: configure Git email --- scripts/zola.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/zola.sh b/scripts/zola.sh index 229d2ac..1e3df6f 100755 --- a/scripts/zola.sh +++ b/scripts/zola.sh @@ -91,6 +91,8 @@ clean() { # $1: branch name # $2: directory containing build assets +# $3: Author in format +# $3: Author in 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