1
0
Fork 0
forked from ahurac/dotfiles

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