Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 3257452

Browse files
committed
v3.0.1, fixed non-working -M, --no-mime-check flag
1 parent ca1fc77 commit 3257452

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

bootiso

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Author: jules randolph <jules.sam.randolph@gmail.com> https://github.com/jsamr
55
# License: MIT
6-
# Version 3.0.0
6+
# Version 3.0.1
77

88
set -o pipefail
99
set -E
@@ -51,7 +51,7 @@ typeset -Ar userFlagsCompatibilityMatrix=(
5151
)
5252

5353
# internal variables
54-
typeset version="3.0.0"
54+
typeset version="3.0.1"
5555
typeset ticketsurl="https://github.com/jsamr/bootiso/issues"
5656
typeset mountRoot=/mnt
5757
typeset tempRoot=/var/tmp/bootiso
@@ -355,11 +355,13 @@ assertISOIsOK() {
355355
if [ ! -f "$selectedIsoFile" ]; then
356356
failAndExit "Provided iso file \`$selectedIsoFile' does not exists."
357357
fi
358-
mimetype=$(file --mime-type -b -- "$selectedIsoFile")
359-
[ "$mimetype" == "application/octet-stream" ]
360-
isOctetStream=$?
361-
if ((isOctetStream != 0)) && [ ! "$mimetype" == "application/x-iso9660-image" ]; then
362-
failISOCheck
358+
if [ "$disableMimeCheck" == 'false' ]; then
359+
mimetype=$(file --mime-type -b -- "$selectedIsoFile")
360+
[ "$mimetype" == "application/octet-stream" ]
361+
isOctetStream=$?
362+
if ((isOctetStream != 0)) && [ ! "$mimetype" == "application/x-iso9660-image" ]; then
363+
failISOCheck
364+
fi
363365
fi
364366
}
365367

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v3.0.1
2+
3+
- fixed non-working `-M`, `--no-mime-check` flag
4+
15
# v3.0.0
26

37
- `[install-auto]` default mode: bootiso chooses the most appropriate copy mode after inspecting ISO file

0 commit comments

Comments
 (0)