gitpages

A collection of scripts to securely webhost and publish git repositories.
git clone https://scm.kuandu.systems/git-raw/gitpages.git
Log | Files | Refs | README | LICENSE

commit bfa17a1988def6dea5f76ac4a8312023b7a5d762
parent bdb2d9a120419635af9304c7ca75dbc8be312928
Author: Fred Großkopf <fred@kuandu.systems>
Date:   Thu, 30 Apr 2026 23:25:36 +0200

Updates gitpages-update.sh

only writes log if one or more repos
were processed.

Diffstat:
Mgitpages-update.sh | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gitpages-update.sh b/gitpages-update.sh @@ -39,6 +39,7 @@ process_repo() { } main() { + processed=0 CONFIG_FILE="$DEFAULT_CONFIG" if [ "${1:-}" = "-c" ]; then @@ -69,6 +70,7 @@ main() { if [ -d "$repo_path" ]; then log "Starting update for: $repo_path (job: $jobfile)" if process_repo "$repo_path" "$CONFIG_FILE"; then + processed=$((processed + 1)) rm -f "$jobfile" else error "Failed to process $repo_path (job: $jobfile)" @@ -78,7 +80,9 @@ main() { fi done - log "Update completed." + if [ "$processed" -gt 0 ]; then + log "Update completed." + fi }