diff --git a/src/install.sh b/src/install.sh index 5aed2fd..b069ba6 100644 --- a/src/install.sh +++ b/src/install.sh @@ -832,7 +832,11 @@ detectImage() { warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" && return 1 fi - info=$(wimlib-imagex info -xml "$wim" | iconv -f UTF-16LE -t UTF-8) + if ! info=$(wimlib-imagex info -xml "$wim" | iconv -f UTF-16LE -t UTF-8); then + warn "failed to read Windows image information, $FB" + return 1 + fi + checkPlatform "$info" || exit 67 DETECTED=$(detectVersion "$info") @@ -1122,7 +1126,12 @@ updateImage() { fi index="1" - result=$(wimlib-imagex info -xml "$wim" | iconv -f UTF-16LE -t UTF-8) + + if ! result=$(wimlib-imagex info -xml "$wim" | iconv -f UTF-16LE -t UTF-8); then + warn "failed to read boot image information, $FB" + MANUAL="Y" + result="" + fi if [[ "${result^^}" == *""* ]]; then index="2"