From 76beb29f6e42b55a5f29a207fbca87237c40c3df Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 30 Sep 2026 19:02:27 -0500 Subject: fail loudly if git isn't installed and we need it --- bin/build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/build b/bin/build index 8283bf25..9a15ca66 100755 --- a/bin/build +++ b/bin/build @@ -39,7 +39,12 @@ while test $# -gt 0; do esac done -if [ -z "$version" ]; then +if [ -z "$version" ]; then + if ! command -v git >/dev/null 2>&1; then + echo "💥 error: git is required to compose the version, but the executable couldn't be found" + exit 1 + fi + tag=$(git describe --tags --abbrev=0) sha=$(git rev-parse --short HEAD) version=$tag+$sha -- cgit v1.2.3