feat: Check path to custom .iso
This commit is contained in:
parent
24c6643d00
commit
9bbe8f22c8
1 changed files with 4 additions and 0 deletions
|
@ -202,6 +202,10 @@ detectCustom() {
|
|||
local file base
|
||||
CUSTOM=""
|
||||
|
||||
if [ -d "/custom.iso" ]; then
|
||||
error "The file /custom.iso has an invalid path!" && return 1
|
||||
fi
|
||||
|
||||
file=$(find / -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
||||
[ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue