From 5c637923204ec94176cb42930283696bd2021828 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 21 Jan 2024 21:16:11 +0100 Subject: [PATCH] fix: Filename variations (#366) --- src/install.sh | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/src/install.sh b/src/install.sh index ee8647b..cec7d56 100644 --- a/src/install.sh +++ b/src/install.sh @@ -9,27 +9,22 @@ else fi BASE="boot.img" -[ -f "$STORAGE/$BASE" ] && return 0 +[ ! -f "$STORAGE/$BASE" ] && BASE="boot.iso" +[ ! -f "$STORAGE/$BASE" ] && BASE="Boot.img" +[ ! -f "$STORAGE/$BASE" ] && BASE="Boot.iso" +[ ! -f "$STORAGE/$BASE" ] && BASE="boot.IMG" +[ ! -f "$STORAGE/$BASE" ] && BASE="boot.ISO" +[ ! -f "$STORAGE/$BASE" ] && BASE="BOOT.IMG" +[ ! -f "$STORAGE/$BASE" ] && BASE="BOOT.ISO" +[ ! -f "$STORAGE/$BASE" ] && BASE="custom.iso" +[ ! -f "$STORAGE/$BASE" ] && BASE="custom.img" +[ ! -f "$STORAGE/$BASE" ] && BASE="Custom.iso" +[ ! -f "$STORAGE/$BASE" ] && BASE="Custom.img" +[ ! -f "$STORAGE/$BASE" ] && BASE="custom.ISO" +[ ! -f "$STORAGE/$BASE" ] && BASE="custom.IMG" +[ ! -f "$STORAGE/$BASE" ] && BASE="CUSTOM.ISO" +[ ! -f "$STORAGE/$BASE" ] && BASE="CUSTOM.IMG" -BASE="boot.iso" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="Boot.img" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="Boot.iso" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="boot.IMG" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="boot.ISO" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="BOOT.IMG" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="BOOT.ISO" [ -f "$STORAGE/$BASE" ] && return 0 if [ -z "$BOOT" ]; then