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
|
# List running virtual machines
|
||||||
public_active() {
|
public_active() {
|
||||||
|
cd || return
|
||||||
echo "Running machines:"
|
echo "Running machines:"
|
||||||
exec ls -t sockets
|
exec ls -t sockets
|
||||||
}
|
}
|
||||||
|
|
||||||
# List available virtual machines entrypoints
|
# List available virtual machines entrypoints
|
||||||
public_ls() {
|
public_ls() {
|
||||||
|
cd || return
|
||||||
echo "Available machines:"
|
echo "Available machines:"
|
||||||
exec ls launchers
|
exec ls launchers
|
||||||
}
|
}
|
||||||
|
@ -110,12 +112,14 @@ public_diskrm() {
|
||||||
|
|
||||||
# List available disks
|
# List available disks
|
||||||
public_diskls() {
|
public_diskls() {
|
||||||
|
cd || return
|
||||||
echo "Available disks:"
|
echo "Available disks:"
|
||||||
exec ls disks
|
exec ls disks
|
||||||
}
|
}
|
||||||
|
|
||||||
# Edit a virtual machine entrypoint with a text editor
|
# Edit a virtual machine entrypoint with a text editor
|
||||||
public_edit() {
|
public_edit() {
|
||||||
|
cd || return
|
||||||
local file="launchers/${1}"
|
local file="launchers/${1}"
|
||||||
|
|
||||||
"$EDITOR" "$file"
|
"$EDITOR" "$file"
|
||||||
|
@ -124,6 +128,7 @@ public_edit() {
|
||||||
|
|
||||||
# Delete a virtual machine entrypoint
|
# Delete a virtual machine entrypoint
|
||||||
public_rm() {
|
public_rm() {
|
||||||
|
cd || return
|
||||||
exec rm -vi -- "launchers/${1}"
|
exec rm -vi -- "launchers/${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue