From 527fa2806cad4de29e835788628ed03999ea6959 Mon Sep 17 00:00:00 2001 From: mar77i Date: Mon, 4 Mar 2024 00:55:00 +0100 Subject: [PATCH] add hublib, minor cleanups in post-receive.sh --- gitweb_configs.py | 4 ++++ post-receive.sh | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gitweb_configs.py b/gitweb_configs.py index 0616f6d..f69839e 100755 --- a/gitweb_configs.py +++ b/gitweb_configs.py @@ -15,6 +15,10 @@ GITWEB_CONFIGS = { "owner": "mar77i ", "description": "mar77i.info website", }, + "hublib": { + "owner": "mar77i ", + "description": "base for websocket toys", + }, } diff --git a/post-receive.sh b/post-receive.sh index 062d072..23199d0 100755 --- a/post-receive.sh +++ b/post-receive.sh @@ -10,9 +10,6 @@ while read _ _ refname; do done EOF -hook_hash="$(printf '%s' "${hook}"|sha256sum| cut -d\ -f1)" -[[ -f "${dest}" ]] && current_hash="$(sha256sum hooks/post-receive| cut -d\ -f1)" - print_and_run() { printf ">>>" for (( i = 1; i < $# + 1; i++ )); do @@ -37,6 +34,8 @@ if [[ "${1}" == --install ]]; then exit fi +hook_hash="$(printf '%s' "${hook}"|sha256sum| cut -d\ -f1)" +[[ -f "${dest}" ]] && current_hash="$(sha256sum hooks/post-receive| cut -d\ -f1)" [[ "${hook_hash}" != "${current_hash}" ]] && update_post_receive_hook update_gitweb_theme() { -- 2.47.0