From: mar77i Date: Sun, 3 Mar 2024 23:55:00 +0000 (+0100) Subject: add hublib, minor cleanups in post-receive.sh X-Git-Url: https://git.mar77i.info/?a=commitdiff_plain;h=527fa2806cad4de29e835788628ed03999ea6959;p=admin add hublib, minor cleanups in post-receive.sh --- 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() {