Skip to content

Commit

Permalink
scripts: fix detection of qemu 4.1
Browse files Browse the repository at this point in the history
quote `>= 4.1` to avoid bash redirects `echo`'s output to a
new file named `=`

fixes #652

Signed-off-by: Julio Montes <julio.montes@intel.com>
  • Loading branch information
Julio Montes committed Jul 24, 2019
1 parent e5a1376 commit 93e9997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/configure-hypervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ generate_qemu_options() {
qemu_options+=(size:--disable-libnfs)

# Starting from QEMU 4.1, libssh replaces to libssh2
if [ "$(echo "${qemu_version_major}.${qemu_version_minor}" >= 4.1 | bc)" == "1" ]; then
if [ "$(echo "${qemu_version_major}.${qemu_version_minor} >= 4.1" | bc)" == "1" ]; then
qemu_options+=(size:--disable-libssh)
else
qemu_options+=(size:--disable-libssh2)
Expand Down

0 comments on commit 93e9997

Please sign in to comment.