qemush : possibilité de supprimer plusieurs disques ou plusieurs scripts

This commit is contained in:
Ahurac 2024-01-23 01:13:56 +01:00
parent bde39b0d72
commit 0d05aace05

View file

@ -105,9 +105,10 @@ public_diskadd() {
# Delete a disk # Delete a disk
public_diskrm() { public_diskrm() {
QEMUSH_NAME="$1" for disk in "$@"; do
shift QEMUSH_NAME="$disk"
exec rm -vi -- "$(diskpath)" rm -vi -- "$(diskpath)"
done
} }
# List available disks # List available disks
@ -129,8 +130,8 @@ public_edit() {
# Delete a virtual machine entrypoint # Delete a virtual machine entrypoint
public_rm() { public_rm() {
cd || return cd ~/launchers || return
exec rm -vi -- "launchers/${1}" exec rm -vi -- "$@"
} }
# Invoke bash as qemu user in its home directory # Invoke bash as qemu user in its home directory