fix website nav header (no-check)

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2024-04-23 10:33:26 +02:00
1 parent 35f095cceb
commit 04df6dfcf5
2 files changed
+35 -6

No files matched your search

@@ -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