mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
Update define.sh
This commit is contained in:
parent
f7e69f1b42
commit
2405ce8778
1 changed files with 5 additions and 1 deletions
|
|
@ -1505,7 +1505,11 @@ prepareInstall() {
|
||||||
else
|
else
|
||||||
|
|
||||||
key="${pid:$((${#pid})) - 8:5}"
|
key="${pid:$((${#pid})) - 8:5}"
|
||||||
|
if [[ "${pid^^}" == *"OEM" ]]; then
|
||||||
key=$(grep -i -A 2 "$key" "$file" | tail -n 2 | head -n 1)
|
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#*= }"
|
key="${key#*= }"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue