Compare commits
2 commits
3b15e39dae
...
893c2fc42e
Author | SHA1 | Date | |
---|---|---|---|
893c2fc42e | |||
541416cd26 |
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ umask 027
|
|||
|
||||
# Function to print a colored error
|
||||
perror() {
|
||||
>&2 printf '\033[1;31mERROR:\033[0m \033[1m%s\033[0m\n' "$*"
|
||||
>&2 printf '\033[1;31mKO:\033[0m \033[1m%s\033[0m\n' "$*"
|
||||
}
|
||||
|
||||
# Function to show the usage
|
||||
|
@ -78,7 +78,7 @@ public_start() {
|
|||
QEMUSH_NAME="$1"
|
||||
shift
|
||||
|
||||
exec "$QEMUSH_NAME" "$@"
|
||||
"$QEMUSH_NAME" "$@" || perror "error launching virtual machine \"${QEMUSH_NAME}\""
|
||||
}
|
||||
|
||||
# Attach to a running virtual machine output, the latest opened if no
|
||||
|
|
Loading…
Reference in a new issue