Merge pull request #653 from devimc/topic/scripts/qemu41Libssh

scripts: fix detection of qemu 4.1
This commit is contained in:
GabyCT 2019-07-25 15:41:34 -05:00 committed by GitHub
commit c79b9de88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)