From 0d05aace058038a84eefe9e2edff9623b7ef61c2 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Tue, 23 Jan 2024 01:13:56 +0100 Subject: [PATCH] =?UTF-8?q?qemush=20:=20possibilit=C3=A9=20de=20supprimer?= =?UTF-8?q?=20plusieurs=20disques=20ou=20plusieurs=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/qemush b/bin/qemush index 4a41d7b..410bee3 100755 --- a/bin/qemush +++ b/bin/qemush @@ -105,9 +105,10 @@ public_diskadd() { # Delete a disk public_diskrm() { - QEMUSH_NAME="$1" - shift - exec rm -vi -- "$(diskpath)" + for disk in "$@"; do + QEMUSH_NAME="$disk" + rm -vi -- "$(diskpath)" + done } # List available disks @@ -129,8 +130,8 @@ public_edit() { # Delete a virtual machine entrypoint public_rm() { - cd || return - exec rm -vi -- "launchers/${1}" + cd ~/launchers || return + exec rm -vi -- "$@" } # Invoke bash as qemu user in its home directory