Update install.sh

This commit is contained in:
Kroese 2024-05-22 11:07:35 +02:00 committed by GitHub
parent 621206a040
commit 4841044e6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -188,17 +188,16 @@ abortInstall() {
detectCustom() {
local file
CUSTOM=""
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)
if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then
local base=$(basename "$VERSION")
file=$(find "$STORAGE" -maxdepth 1 -type f -iname "$base" | head -n 1)
file="$STORAGE/$base"
fi
CUSTOM=""
if [ ! -f "$file" ] || [ ! -s "$file" ]; then
return 0
fi