Skip to content

Commit f2dcd88

Browse files
authored
build: 🔨 update some of the justfile recipes (#57)
# Description Mostly matching what other repos have. This PR needs a quick review. ## Checklist - [x] Ran `just run-all`
1 parent 46f7d28 commit f2dcd88

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

justfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,19 @@ build-readme:
2828

2929
# Clean up the 'local/bin' by removing the spaid commands.
3030
reset-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
3434
check-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

0 commit comments

Comments
 (0)