1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-13 02:32:07 +02:00

fix website nav header (no-check)

This commit is contained in:
2024-04-23 10:33:26 +02:00
parent 35f095cceb
commit 04df6dfcf5
2 changed files with 35 additions and 6 deletions

View File

@ -29,7 +29,17 @@
# how to conduct AMR data analysis: https://msberends.github.io/AMR/ #
# ==================================================================== #
echo "Running pre-commit hook..."
#!/bin/bash
echo "Running commit-msg hook..."
# check if the commit message contains '(no-check)' or '(no-verify)'
COMMIT_MSG=$(cat "$1")
if [[ "$COMMIT_MSG" =~ \(no-check\)|\(no-verify\) ]]; then
echo "Commit check bypassed by commit message."
exit 0
fi
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if command -v Rscript > /dev/null; then