Files
go-semantic-release/.githooks/commit-msg
Aaron Guise 274cabf05a
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
fix(*): Added git-commit hook 🔨
2024-04-02 14:01:20 +13:00

12 lines
284 B
Bash
Executable File

#!/bin/sh
# Run the script and get the return code if successful of if fails
./scripts/commit-filter-check.sh && rc=$? || rc=$?
echo return code : $rc
if [ ${rc} = 1 ]; then
echo "Script return code 1 so commit failed"
exit 1
else
echo "No error returned so commit successful"
fi