From 48790fec0d497e9d7294d3c7adbdf82ce198b6ab Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Wed, 29 Nov 2023 14:39:09 +0100 Subject: [PATCH] qemush : ajout de la variable images --- bin/qemush | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/qemush b/bin/qemush index 948845f..86ab9bd 100755 --- a/bin/qemush +++ b/bin/qemush @@ -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() {