mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
Convert in memory instead of file
This commit is contained in:
parent
57ac15b62d
commit
0aa2dba9e3
1 changed files with 1 additions and 3 deletions
|
|
@ -615,9 +615,7 @@ detectImage() {
|
||||||
warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" && return 1
|
warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wimlib-imagex info -xml "$wim" > wimxml.xml
|
info=$(wimlib-imagex info -xml "$wim" | iconv -f UTF-16LE -t UTF-8)
|
||||||
iconv -f UTF-16LE -t UTF-8 wimxml.xml -o wimxmlutf8.xml
|
|
||||||
info=$(cat wimxmlutf8.xml)
|
|
||||||
checkPlatform "$info" || exit 67
|
checkPlatform "$info" || exit 67
|
||||||
|
|
||||||
DETECTED=$(detectVersion "$info")
|
DETECTED=$(detectVersion "$info")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue