qemush : la fonction start renvoie un code de retour
This commit is contained in:
parent
1636e5034e
commit
e318dd53eb
1 changed files with 4 additions and 2 deletions
|
@ -66,9 +66,11 @@ error_usage() {
|
|||
# Function to start a virtual machine
|
||||
public_start() {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue