feat: Check path to custom .iso

This commit is contained in:
Kroese 2025-02-27 19:26:19 +01:00 committed by GitHub
parent 24c6643d00
commit 9bbe8f22c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)