qemush : la fonction start renvoie un code de retour

This commit is contained in:
Ahurac 2024-01-22 23:45:45 +01:00
parent 1636e5034e
commit e318dd53eb

View file

@ -66,9 +66,11 @@ error_usage() {
# Function to start a virtual machine # Function to start a virtual machine
public_start() { public_start() {
QEMUSH_NAME="$1" QEMUSH_NAME="$1"
shift
"$QEMUSH_NAME" "$@" || perror "error launching virtual machine \"${QEMUSH_NAME}\"" if ! "$@"; then
perror "error launching virtual machine \"${QEMUSH_NAME}\""
return 2
fi
} }
# Attach to a running virtual machine output, the latest opened if no # Attach to a running virtual machine output, the latest opened if no