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