Update define.sh

This commit is contained in:
Kroese 2025-04-22 18:40:46 +02:00 committed by GitHub
parent f7e69f1b42
commit 2405ce8778
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1505,7 +1505,11 @@ prepareInstall() {
else
key="${pid:$((${#pid})) - 8:5}"
if [[ "${pid^^}" == *"OEM" ]]; then
key=$(grep -i -A 2 "$key" "$file" | tail -n 2 | head -n 1)
else
key=$(grep -i -m 1 -A 2 "$key" "$file" | tail -n 2 | head -n 1)
fi
key="${key#*= }"
fi