initial commit

This commit is contained in:
2026-04-25 21:55:07 +01:00
commit 4bf033ff65
5 changed files with 104 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_NAME="${1:-}"
if [[ -z "${SCRIPT_NAME}" ]]; then
echo "Usage: $0 <script-subdirectory>" >&2
exit 2
fi
HOOK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
RUNNER="${HOOK_DIR}/${SCRIPT_NAME}/run.sh"
if [[ ! -f "${RUNNER}" ]]; then
echo "Hook script not found: ${RUNNER}" >&2
exit 2
fi
if [[ ! -x "${RUNNER}" ]]; then
echo "Hook script is not executable: ${RUNNER}" >&2
exit 2
fi
exec "${RUNNER}"