From 94819fd529e69f8a1d4f932e7d1e00977ea9e9d2 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Fri, 8 Mar 2024 23:41:50 +0100 Subject: [PATCH] =?UTF-8?q?pathof=20:=20possibilit=C3=A9=20d'ajouter=20des?= =?UTF-8?q?=20modules=20dans=20les=20noms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qemu/bin/pathof | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qemu/bin/pathof b/qemu/bin/pathof index f0703e6..b92f3d5 100755 --- a/qemu/bin/pathof +++ b/qemu/bin/pathof @@ -34,5 +34,7 @@ trap - EXIT # Print the actual string basedir="${HOME}/${basedir}" +name="$QEMUSH_NAME" +[ -n "$2" ] && name="${name}-${2}" [ -n "$extension" ] && extension=".${extension}" -printf %s/%s%s\\n "$basedir" "$QEMUSH_NAME" "$extension" +printf %s/%s%s\\n "$basedir" "$name" "$extension"