From e6873618aa78227832bd49ca9dd6ca8ebaf265a0 Mon Sep 17 00:00:00 2001 From: JP Meijers Date: Wed, 5 Jun 2024 15:41:42 +0200 Subject: [PATCH] Fix git version command --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index f391099..1ce43a9 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -29,7 +29,7 @@ parts: scripts/checkout_submodules.py --shallow --platform linux # prefix the snap version with the upstream tag, or fall back to the commit hash - UPSTREAM_VERSION=$(git describe --exact-match --tags 2> /dev/null || $(git rev-parse --short HEAD)) + UPSTREAM_VERSION=$(git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD) craftctl set version=$UPSTREAM_VERSION+$PACKAGE_VERSION chip-tool: