From 2405ce87785f6aff127a79d98a29bc2d75c971e4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 22 Apr 2025 18:40:46 +0200 Subject: [PATCH] Update define.sh --- src/define.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/define.sh b/src/define.sh index cbf22f5..ca29886 100644 --- a/src/define.sh +++ b/src/define.sh @@ -1505,7 +1505,11 @@ prepareInstall() { else key="${pid:$((${#pid})) - 8:5}" - key=$(grep -i -A 2 "$key" "$file" | tail -n 2 | head -n 1) + 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