Update install.sh

This commit is contained in:
Kroese 2024-05-17 20:28:36 +02:00 committed by GitHub
parent acd3ccec4c
commit 175596361d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,6 +73,15 @@ startInstall() {
: "${file//+/ }"; printf -v file '%b' "${_//%/\\x}"
file=$(echo "$file" | sed -e 's/[^A-Za-z0-9._-]/_/g')
else
local language
language=$(getLanguage "$LANGUAGE" "")
if [ -n "$language" ] && [[ "$language" != "en" ]]; then
file="${VERSION/\//}.${language,,}.iso"
fi
fi
BOOT="$STORAGE/$file"