1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/etcd/git-sha.patch
2024-09-26 12:35:22 +00:00

13 lines
363 B
Diff

diff --git a/build.sh b/build.sh
index 05d916e..a341e49 100755
--- a/build.sh
+++ b/build.sh
@@ -4,7 +4,7 @@ set -euo pipefail
source ./scripts/test_lib.sh
-GIT_SHA=$(git rev-parse --short HEAD || echo "GitNotFound")
+: ${GIT_SHA:=$(git rev-parse --short HEAD || echo "GitNotFound")}
if [[ -n "${FAILPOINTS:-}" ]]; then
GIT_SHA="$GIT_SHA"-FAILPOINTS
fi