aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-03 23:28:23 -0500
committerGitHub <noreply@github.com>2026-10-03 23:28:23 -0500
commitfc11d5d691ac008e1507f25ebb5ce3ac7a5cfc60 (patch)
tree3de54f5e8b4001253db53bd20dc153ebe49b271c /bin
parent1915a370c1bd11aee8849574e116b353a0b7153f (diff)
parenta97a425c7121f19c1613106c0bab7a1dcf616f92 (diff)
downloadslskd-fc11d5d691ac008e1507f25ebb5ce3ac7a5cfc60.tar.gz
Merge branch 'master' into upload-queue-fixes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build7
1 files changed, 6 insertions, 1 deletions
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