Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Feb 28, 2025
1 parent de13788 commit 29aed10
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,16 @@ abortInstall() {
detectCustom() {

local file base
local fname="custom.iso"

CUSTOM=""

if [ -d "/custom.iso" ]; then
error "The file /custom.iso has an invalid path!" && return 1
if [ -d "/$fname" ]; then
error "The file /$fname 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)
file=$(find / -maxdepth 1 -type f -iname "$fname" | head -n 1)
[ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname "$fname" | head -n 1)

if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then
base=$(basename "$VERSION")
Expand Down

0 comments on commit 29aed10

Please sign in to comment.