Skip to content

Commit 2d550e6

Browse files
committed
Fix build script
1 parent 85abaa2 commit 2d550e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
# The format will be: v<major>.<minor>.<patch>_g<commit_hash> — e.g. v1.7.2_g8bb88311
66
# Extract full version from src/firecracker/swagger/firecracker.yaml
77
FC_VERSION=$(awk '/^info:/{flag=1} flag && /^ version:/{print $2; exit}' src/firecracker/swagger/firecracker.yaml)
8-
commit_hash=$(git rev-parse --short HEAD)
8+
commit_hash=$(git rev-parse --short=8 HEAD)
99
version_name="v${FC_VERSION}_g${commit_hash}"
1010
echo "Version name: $version_name"
1111

0 commit comments

Comments
 (0)