scripts/qemu-version.sh: Add missing space before ']'
authorThomas Huth <thuth@redhat.com>
Sun, 23 Aug 2020 10:26:17 +0000 (12:26 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Aug 2020 16:52:30 +0000 (18:52 +0200)
When configure has been run with --with-pkgversion=xyz, the shell complains
about a missing ']' in this script.

Fixes: 2c273f32d3 ("meson: generate qemu-version.h")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/qemu-version.sh

index 4847385e42f6b2c21a39b542f268a4300e4812f7..03128c56a2ca688b94121d9fd1223c5ccad73125 100755 (executable)
@@ -6,7 +6,7 @@ dir="$1"
 pkgversion="$2"
 version="$3"
 
-if [ -z "$pkgversion"]; then
+if [ -z "$pkgversion" ]; then
     cd "$dir"
     if [ -e .git ]; then
         pkgversion=$(git describe --match 'v*' --dirty | echo "")