[explorer/machine_type] Make shellcheck happy!

This commit is contained in:
evilham 2020-05-18 16:47:20 +02:00
parent cf44c4a01b
commit 8b790b0a54

View file

@ -25,7 +25,7 @@ os=$("$__explorer/os")
vendor_string_to_machine_type() {
for vendor in vmware bochs kvm qemu virtualbox bhyve; do
if echo "${1}" | grep -q -i "${vendor}"; then
if [ "${vendor}" = "bochs" -o "${vendor}" = "qemu" ]; then
if [ "${vendor}" = "bochs" ] || [ "${vendor}" = "qemu" ]; then
vendor="kvm"
fi
echo "virtual_by_${vendor}"