qemush : ajout de la variable images

This commit is contained in:
Hippolyte Chauvin 2023-11-29 14:39:09 +01:00
parent 9bdc1eef3d
commit 48790fec0d

View file

@ -14,6 +14,7 @@ exec_as() {
exec_as qemu "$@" || exit
bin=bin
images=images
PATH="./${bin}:${PATH}"
perror() {
@ -66,7 +67,7 @@ public_ls() {
}
diskpath() {
printf 'images/%s.qcow2' "$1"
printf "%s.qcow2" "${images}/${1}"
}
public_diskadd() {
@ -79,7 +80,7 @@ public_diskrm() {
public_diskls() {
echo "Available disks:"
ls --color=auto images
ls --color=auto "$images"
}
public_edit() {