pathof : possibilité d'ajouter des modules dans les noms

This commit is contained in:
Ahurac 2024-03-08 23:41:50 +01:00
parent cf34f0499d
commit 94819fd529

View file

@ -34,5 +34,7 @@ trap - EXIT
# Print the actual string # Print the actual string
basedir="${HOME}/${basedir}" basedir="${HOME}/${basedir}"
name="$QEMUSH_NAME"
[ -n "$2" ] && name="${name}-${2}"
[ -n "$extension" ] && extension=".${extension}" [ -n "$extension" ] && extension=".${extension}"
printf %s/%s%s\\n "$basedir" "$QEMUSH_NAME" "$extension" printf %s/%s%s\\n "$basedir" "$name" "$extension"