qemush : possibilité de supprimer plusieurs disques ou plusieurs scripts
This commit is contained in:
parent
bde39b0d72
commit
0d05aace05
1 changed files with 6 additions and 5 deletions
11
bin/qemush
11
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
|
||||
|
|
Loading…
Reference in a new issue