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
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