From 0aa2dba9e3521b0d5b3439bbf83413f250df2525 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 15 Sep 2025 01:47:34 +0200 Subject: [PATCH] Convert in memory instead of file --- src/install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index 2757f4a..1c11cea 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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")