qemush : ajout de cd || return
au début de fonctions sinon ça marche pas
This commit is contained in:
parent
dac9c39895
commit
1636e5034e
1 changed files with 5 additions and 0 deletions
|
@ -82,12 +82,14 @@ public_watch() {
|
|||
|
||||
# List running virtual machines
|
||||
public_active() {
|
||||
cd || return
|
||||
echo "Running machines:"
|
||||
exec ls -t sockets
|
||||
}
|
||||
|
||||
# List available virtual machines entrypoints
|
||||
public_ls() {
|
||||
cd || return
|
||||
echo "Available machines:"
|
||||
exec ls launchers
|
||||
}
|
||||
|
@ -110,12 +112,14 @@ public_diskrm() {
|
|||
|
||||
# List available disks
|
||||
public_diskls() {
|
||||
cd || return
|
||||
echo "Available disks:"
|
||||
exec ls disks
|
||||
}
|
||||
|
||||
# Edit a virtual machine entrypoint with a text editor
|
||||
public_edit() {
|
||||
cd || return
|
||||
local file="launchers/${1}"
|
||||
|
||||
"$EDITOR" "$file"
|
||||
|
@ -124,6 +128,7 @@ public_edit() {
|
|||
|
||||
# Delete a virtual machine entrypoint
|
||||
public_rm() {
|
||||
cd || return
|
||||
exec rm -vi -- "launchers/${1}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue