summaryrefslogtreecommitdiff
path: root/packages/generate.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2021-05-19 20:10:19 +0100
committerPaul Buetow <git@mx.buetow.org>2021-05-21 05:11:05 +0100
commit202f4e03fb9519931142fcd3d76700aeb106a05d (patch)
treeacd094ea1d4bad74735334f1d7107d87c60ac830 /packages/generate.source.sh
parent14822623456972b0dbe9dc5b6c36b701bb6ec7f1 (diff)
fix
Diffstat (limited to 'packages/generate.source.sh')
-rw-r--r--packages/generate.source.sh12
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"
}