mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-09-20 00:02:03 +02:00
Catch no arguments being passed
This commit is contained in:
parent
bae1dedf3a
commit
4aa38ad8f9
6
quickemu
6
quickemu
|
@ -554,6 +554,11 @@ QEMU="/snap/bin/qemu-virgil"
|
|||
QEMU_IMG="/snap/bin/qemu-virgil.qemu-img"
|
||||
VIRGIL_PATH="/snap/qemu-virgil/current"
|
||||
|
||||
# Take command line arguments
|
||||
if [ $# -lt 1 ]; then
|
||||
usage
|
||||
exit 0
|
||||
else
|
||||
while [ $# -gt 0 ]; do
|
||||
case "${1}" in
|
||||
-delete|--delete)
|
||||
|
@ -596,6 +601,7 @@ while [ $# -gt 0 ]; do
|
|||
usage;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -n "$SYSTEM_QEMU" ]; then
|
||||
QEMU=$(which qemu-system-x86_64)
|
||||
|
|
Loading…
Reference in New Issue
Block a user