File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,19 @@ build-readme:
2828
2929# Clean up the 'local/bin' by removing the spaid commands.
3030reset-local-bin :
31- find ~/ .local/ bin/ * -name " spaid_" -delete
31+ find ~/ .local/ bin/ * -name " spaid_* " -delete
3232
33- # Run checks on commits with non- main branches
33+ # Check the commit messages on the current branch that are not on the main branch
3434check-commits :
35- #!/ bin/ zsh
35+ #!/usr/ bin/env bash
3636 branch_name=$(git rev-parse --abbrev-ref HEAD)
3737 number_of_commits=$(git rev-list --count HEAD ^main)
3838 if [[ ${branch_name} != " main" && ${number_of_commits} -gt 0 ]]
3939 then
40+ # If issue happens, try `uv tool update-shell`
4041 uvx --from commitizen cz check --rev-range main..HEAD
4142 else
42- echo " Can't either be on ${branch_name} or have more than ${number_of_commits} ."
43+ echo " On 'main' or current branch doesn't have any commits ."
4344 fi
4445
4546# Check for spelling errors in files
You can’t perform that action at this time.
0 commit comments