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
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue