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 aad774c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ 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
if [ $? -ne 0 ]; then
printError "Failed to install $GITLINT_DIR. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it manually."
wget https://github.com/llorllale/go-gitlint/releases/download/v0.0.0/go-gitlint-linux-amd64.tar.gz -O go-gitlint.tar.gz
tar -xzf go-gitlint.tar.gz -C "$_output/tools/"
if ! which go-gitlint &>/dev/null; then
printError "Installation failed: go-gitlint command not found."
exit 1
fi
fi
Expand Down

0 comments on commit aad774c

Please sign in to comment.