Update install.sh

This commit is contained in:
Kroese 2024-04-30 13:38:35 +02:00 committed by GitHub
parent eafb430a72
commit 9ee5264bd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,9 +157,6 @@ startInstall() {
if [ ! -f "$STORAGE/$CUSTOM" ]; then if [ ! -f "$STORAGE/$CUSTOM" ]; then
CUSTOM="" CUSTOM=""
ISO="$TMP/$BASE" ISO="$TMP/$BASE"
if [[ "${PLATFORM,,}" == "arm64" ]]; then
[[ "$EXTERNAL" != [Yy1]* ]] && ISO="$TMP/$VERSION.esd"
fi
else else
ISO="$STORAGE/$CUSTOM" ISO="$STORAGE/$CUSTOM"
fi fi
@ -358,15 +355,12 @@ downloadImage() {
if isESD "$version"; then if isESD "$version"; then
if [[ "${PLATFORM,,}" == "x64" ]]; then [[ "$tried" != "n" ]] && info "Failed to download $desc using Mido, will try a different method now..."
[[ "$tried" != "n" ]] && info "Failed to download $desc using Mido, will try a different method now..." ISO="$TMP/$version.esd"
iso="$ISO"
ISO="$TMP/$version.esd" rm -rf "$TMP"
iso="$ISO" mkdir -p "$TMP"
rm -rf "$TMP"
mkdir -p "$TMP"
fi
tried="y" tried="y"
@ -624,7 +618,7 @@ detectImage() {
[[ "$MANUAL" != [Yy1]* ]] && XML="$DETECTED.xml" [[ "$MANUAL" != [Yy1]* ]] && XML="$DETECTED.xml"
info "Detected: $desc" info "Detected: $desc"
else else
warn "detected $desc, but no matching $DETECTED.xml file exists, $FB." warn "detected $desc, but no matching file called $DETECTED.xml exists, $FB."
fi fi
return 0 return 0