From 202f4e03fb9519931142fcd3d76700aeb106a05d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 19 May 2021 20:10:19 +0100 Subject: fix --- packages/generate.source.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'packages/generate.source.sh') diff --git a/packages/generate.source.sh b/packages/generate.source.sh index b28d9e8e..910d2502 100644 --- a/packages/generate.source.sh +++ b/packages/generate.source.sh @@ -134,14 +134,16 @@ generate::fromgmi () { done done - if [[ -z "$GIT_COMMIT_MESSAGE" ]]; then - GIT_COMMIT_MESSAGE='Publishing new version' + if [[ "$USE_GIT" == yes ]]; then + if [[ -z "$GIT_COMMIT_MESSAGE" ]]; then + GIT_COMMIT_MESSAGE='Publishing new version' + fi + git::commit gemtext "$GIT_COMMIT_MESSAGE" + git::commit meta "$GIT_COMMIT_MESSAGE" fi for format in "$@"; do - git::commit "$format" "$GIT_COMMIT_MESSAGE" + test "$USE_GIT" == yes && git::commit "$format" "$GIT_COMMIT_MESSAGE" log INFO "$format can be found in $CONTENT_BASE_DIR/$format now" done - git::commit gemtext "$GIT_COMMIT_MESSAGE" - git::commit meta "$GIT_COMMIT_MESSAGE" } -- cgit v1.2.3