diff options
-rwxr-xr-x | scripts/qw | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -36,18 +36,18 @@ if [ $# != 2 ] && [ $# != 1 ]; then err "${0}: Invalid usage" "Try '${0} -h' for help." fi -while getopts "cr:" option ;do +while getopts "cr:h" option ;do case "${option}" in c) run "qemu-img create -f qcow2 Image.img 10G" \ "${0}: Failed to create Image.img" ;; r) - run "qemu-system-x86_64 -enable-kvm -cdrom "${OPTARG}" \ + run "qemu-system-x86_64 -enable-kvm -cdrom ${OPTARG} \ -boot menu=on -drive file=Image.img -m 4G" \ "${0}: Failed to run image" ;; - h) help ;; + h) help && exit 0;; *) err "Try '${0} -h' for help." ;; esac |