]> Git Repo - qemu.git/commitdiff
build-sys: fix git version from -version
authorMarc-André Lureau <[email protected]>
Tue, 29 Sep 2020 14:36:54 +0000 (18:36 +0400)
committerPaolo Bonzini <[email protected]>
Mon, 12 Oct 2020 15:50:23 +0000 (11:50 -0400)
Typo introduced with the script.

Fixes: 2c273f32d3 ("meson: generate qemu-version.h")
Signed-off-by: Marc-André Lureau <[email protected]>
Reported-by: Laszlo Ersek <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Tested-by: Laszlo Ersek <[email protected]>
Message-Id: <20200929143654[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
scripts/qemu-version.sh

index 03128c56a2ca688b94121d9fd1223c5ccad73125..3f6e7e6d41d87b026a7a40681e2530e7c04bfc8a 100755 (executable)
@@ -9,7 +9,7 @@ version="$3"
 if [ -z "$pkgversion" ]; then
     cd "$dir"
     if [ -e .git ]; then
-        pkgversion=$(git describe --match 'v*' --dirty | echo "")
+        pkgversion=$(git describe --match 'v*' --dirty) || :
     fi
 fi
 
This page took 0.028925 seconds and 4 git commands to generate.