feat: Check path to boot.iso
This commit is contained in:
parent
03115137c8
commit
18a06474e4
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ findFile() {
|
||||||
local ext="$1"
|
local ext="$1"
|
||||||
local file
|
local file
|
||||||
|
|
||||||
|
if [ -d "/boot.$ext" ]; then
|
||||||
|
warn "The file /boot.$ext has an invalid path!"
|
||||||
|
fi
|
||||||
|
|
||||||
file=$(find / -maxdepth 1 -type f -iname "boot.$ext" | head -n 1)
|
file=$(find / -maxdepth 1 -type f -iname "boot.$ext" | head -n 1)
|
||||||
[ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname "boot.$ext" | head -n 1)
|
[ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname "boot.$ext" | head -n 1)
|
||||||
detectType "$file" && return 0
|
detectType "$file" && return 0
|
||||||
|
|
Loading…
Reference in a new issue