pathof : créer le dossier s'il n'existe pas avant de l'afficher

This commit is contained in:
Ahurac 2024-01-21 00:29:15 +01:00
parent d8fc13cff8
commit 90c376df40

View file

@ -16,5 +16,7 @@ case "$1" in
;;
esac
# Print the base dir and the name of the VM
# Create the base dir if it doesn't exist and print the path of the
# ressource
mkdir -p -- "$path"
printf %s/%s\\n "$path" "$QEMUSH_NAME"