diff options
Diffstat (limited to 'packages/generate.source.sh')
| -rw-r--r-- | packages/generate.source.sh | 12 |
1 files changed, 7 insertions, 5 deletions
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" } |
