From e0e39d56a5edc124a1f3dfe37ac5043e05e85619 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 7 May 2023 11:47:47 +0300 Subject: dont make gemtexter stop when there isnt anything new to be committed to git --- lib/git.source.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/git.source.sh') diff --git a/lib/git.source.sh b/lib/git.source.sh index 8048aad..c2b216a 100644 --- a/lib/git.source.sh +++ b/lib/git.source.sh @@ -30,7 +30,9 @@ git::_add_all () { done local -r format="$(basename "$content_dir")" - git commit -a -m "$message for $format" + if ! git commit -a -m "$message for $format"; then + log INFO 'Nothing new to be added' + fi cd "$pwd" } -- cgit v1.2.3