mirror of
https://github.com/msberends/AMR.git
synced 2024-12-27 08:06:13 +01:00
fix git hooks
This commit is contained in:
parent
7f18e66c4e
commit
1bce7ed3d3
@ -33,8 +33,15 @@
|
|||||||
# This script runs before every commit #
|
# This script runs before every commit #
|
||||||
########################################
|
########################################
|
||||||
|
|
||||||
# check the commit message
|
# try to fetch the commit message from the standard location
|
||||||
COMMIT_MSG=$(cat "$1")
|
COMMIT_MSG_PATH=".git/COMMIT_EDITMSG"
|
||||||
|
if [ -f "$COMMIT_MSG_PATH" ]; then
|
||||||
|
COMMIT_MSG=$(cat "$COMMIT_MSG_PATH")
|
||||||
|
else
|
||||||
|
echo "Commit message file not found."
|
||||||
|
echo 1
|
||||||
|
fi
|
||||||
|
# check the commit message, cancel commit if needed
|
||||||
if [[ "$COMMIT_MSG" =~ \(no-check\)|\(no-checks\)|\(no-verify\) ]]; then
|
if [[ "$COMMIT_MSG" =~ \(no-check\)|\(no-checks\)|\(no-verify\) ]]; then
|
||||||
echo "Not running pre-commit checks:"
|
echo "Not running pre-commit checks:"
|
||||||
echo "Commit message contains '(no-check)', '(no-checks)', or '(no-verify)."
|
echo "Commit message contains '(no-check)', '(no-checks)', or '(no-verify)."
|
||||||
@ -42,7 +49,6 @@ if [[ "$COMMIT_MSG" =~ \(no-check\)|\(no-checks\)|\(no-verify\) ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Running pre-commit checks..."
|
echo "Running pre-commit checks..."
|
||||||
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 2.1.1.9025
|
Version: 2.1.1.9028
|
||||||
Date: 2024-04-24
|
Date: 2024-04-24
|
||||||
Title: Antimicrobial Resistance Data Analysis
|
Title: Antimicrobial Resistance Data Analysis
|
||||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||||
|
2
NEWS.md
2
NEWS.md
@ -1,4 +1,4 @@
|
|||||||
# AMR 2.1.1.9025
|
# AMR 2.1.1.9028
|
||||||
|
|
||||||
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support!)*
|
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support!)*
|
||||||
|
|
||||||
|
BIN
R/sysdata.rda
BIN
R/sysdata.rda
Binary file not shown.
Loading…
Reference in New Issue
Block a user