Update install.sh

This commit is contained in:
Kroese 2024-05-22 12:28:10 +02:00 committed by GitHub
parent e9087a6eb3
commit a43c393773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,11 +4,6 @@ set -Eeuo pipefail
file=$(find / -maxdepth 1 -type f -iname boot.iso | head -n 1)
[ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname boot.iso | head -n 1)
if [ ! -s "$file" ] && [[ "${BOOT,,}" != "http"* ]]; then
base=$(basename "$BOOT")
file="$STORAGE/$base"
fi
if [ -f "$file" ] && [ -s "$file" ]; then
BOOT="$file"
return 0