moiso: améliorer l'ergonomie pour le démontage

This commit is contained in:
Jephté Clain 2017-10-18 06:37:44 +04:00
parent 7bd0a95b3e
commit 489b31ded9
1 changed files with 1 additions and 0 deletions

1
moiso
View File

@ -29,6 +29,7 @@ parse_opts "${PRETTYOPTS[@]}" \
image="$1"
[ -n "$image" ] || die "Vous devez spécifier l'image iso à monter"
[ -d "$image" -a -f "$image.iso" ] && image="$image.iso"
[ -f "$image" ] || die "$image: fichier introuvable"
image="$(abspath "$image")"