diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh')
-rw-r--r-- | os-plugins/plugins/vmchooser/files/run-virt.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index 7cb8b36b..205179e7 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -26,7 +26,7 @@ # test if the xml path/file is valid (gotten via commandline first parameter) xml=$1 -[ -e "${xml}" ] || { echo -e "\n\tNo XML file given!\n" && exit 1; } +[ -e "${xml}" ] || { echo -e "\n\tNo XML file given!\n"; exit 1; } # path to the xml file(just take the path to the xml file) imagepath=${xml%/*} @@ -37,6 +37,7 @@ imagepath=${xml%/*} # file name of the image imagename=$(grep -i "<image_name param=\"" ${xml} | awk -F "\"" '{ print $2 }') diskfile=$imagepath/$imagename +[ -e $diskfile ] && { echo -e "\n\tImage file $diskfile not found!"; exit 1; } # short description of the image (as present in the vmchooser menu line) short_description=$(grep "short_description param=\"" ${xml} | \ |