Fix a logic error is -vm flag validation

This commit is contained in:
Martin Wimpress 2020-03-21 10:30:25 +00:00
parent e566e38e9c
commit 373a83f9a4
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -345,7 +345,7 @@ if [ ! -e "${QEMU}" ] && [ ! -e "${QEMU_IMG}" ]; then
exit 1
fi
if [ -n "${VM}" ] || [ -e "${VM}" ]; then
if [ -n "${VM}" ] && [ -e "${VM}" ]; then
source "${VM}"
if [ -z "${disk_img}" ]; then
echo "ERROR! No disk_img defined."