Skip to content

Commit b806afc

Browse files
committed
githooks: run all checks in pre-commit hook
Previous usage of exec caused only the first script to be run.
1 parent a55eefc commit b806afc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.githooks/pre-commit

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ set -o pipefail
2020

2121
REPO_ROOT="$(git rev-parse --show-toplevel)"
2222

23-
exec "${REPO_ROOT}/hack/verify-kep-metadata.sh"
24-
exec "${REPO_ROOT}/hack/verify-toc.sh"
25-
exec "${REPO_ROOT}/hack/verify-spelling.sh"
23+
scripts=(
24+
"hack/verify-kep-metadata.sh"
25+
"hack/verify-toc.sh"
26+
"hack/verify-spelling.sh"
27+
)
28+
29+
for s in "${scripts[@]}"; do
30+
echo "Running $s..."
31+
"${REPO_ROOT}/$s" || exit 1
32+
done

0 commit comments

Comments
 (0)