mirror of
https://github.com/dockur/windows.git
synced 2025-12-21 14:41:49 +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
|
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…
Reference in New Issue
Block a user