Skip to content

Commit

Permalink
feat: Updated scripts/githooks/commit-msg
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 2, 2024
1 parent 6ff25a0 commit 301c006
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ GITLINT_DIR="./_output/tools/go-gitlint"

if ! command -v $GITLINT_DIR &>/dev/null; then
echo "$GITLINT_DIR not found. Attempting to install it..."
# Add the commands to download and install the go-gitlint tool here
go get github.com/jorisroovers/gitlint
if ! command -v $GITLINT_DIR &>/dev/null; then
if [ $? -ne 0 ]; then
printError "Failed to install $GITLINT_DIR. Please check the installation and try again."
exit 1
printError "Failed to install $GITLINT_DIR. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it manually."
exit 1
fi
Expand Down

0 comments on commit 301c006

Please sign in to comment.