feat(scripts): check that git is installed in release scripts

This commit is contained in:
peaklabs-dev committed 2026-02-13 16:22:18 +01:00
1 parent fc3bdc7b5d
commit 73939ace26
2 files changed
+2

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ info() { echo -e " ${BLUE}info:${OFF} $1"; }
success() { echo -e " ${GREEN}done:${OFF} $1"; }
check_prerequisites() {
command -v git > /dev/null 2>&1 || die "git is not installed. Install it from https://git-scm.com"
git rev-parse --is-inside-work-tree > /dev/null 2>&1 || die "Not a git repository"
if ! git diff --quiet || ! git diff --cached --quiet; then