From 12eeb643473405667bc603aa770b63bc40ef4423 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Thu, 25 Jan 2024 14:41:20 +0100 Subject: [PATCH] qemush : commande active -> running --- bin/qemush | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/qemush b/bin/qemush index c34ceb7..ae386e5 100755 --- a/bin/qemush +++ b/bin/qemush @@ -38,7 +38,7 @@ public_help() { exec cat << EOF ${name}: usage: - ${name} active - (default behaviour) list active VMs + ${name} running - (default behaviour) list running VMs ${name} start - start a VM ${name} watch - attach VM screen session ${name} ls - list available VMs @@ -84,7 +84,7 @@ public_watch() { } # List running virtual machines -public_active() { +public_running() { cd || return echo "Running machines:" set -- $ls -t sockets "$@" @@ -182,7 +182,7 @@ shift # Defauts to `active` if no function is supplied; else checks for a public # function named after the argument; else fails if [ -z "$function" ]; then - public_active + public_running elif declare -F | cut -d \ -f 3- | grep '^public_' | sed 's/^public_//' | grep -q "^${function}$"; then "public_${function}" "$@" else