mirror of
https://github.com/dockur/windows.git
synced 2025-12-21 06:31:45 +00:00
Convert in memory instead of file
This commit is contained in:
parent
57ac15b62d
commit
0aa2dba9e3
@ -615,9 +615,7 @@ detectImage() {
|
||||
warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" && return 1
|
||||
fi
|
||||
|
||||
wimlib-imagex info -xml "$wim" > wimxml.xml
|
||||
iconv -f UTF-16LE -t UTF-8 wimxml.xml -o wimxmlutf8.xml
|
||||
info=$(cat wimxmlutf8.xml)
|
||||
info=$(wimlib-imagex info -xml "$wim" | iconv -f UTF-16LE -t UTF-8)
|
||||
checkPlatform "$info" || exit 67
|
||||
|
||||
DETECTED=$(detectVersion "$info")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user