Skip to content

Commit

Permalink
feat: Detect filename variations
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 21, 2024
1 parent cf72680 commit a320838
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@ fi
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

BASE="BOOT.IMG"
[ -f "$STORAGE/$BASE" ] && return 0

BASE="BOOT.ISO"
[ -f "$STORAGE/$BASE" ] && return 0

if [ -z "$BOOT" ]; then
error "No boot disk specified, set BOOT= to the URL of an ISO file." && exit 64
fi
Expand Down

0 comments on commit a320838

Please sign in to comment.