From 0ad90c7ef7fdd36cbcc0af23a764aa5f624a105c Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 9 Jan 2022 17:25:57 +0300 Subject: [PATCH] Do not try to split WIM if install.wim is missing --- windows2usb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows2usb b/windows2usb index cdb8a1e..40e028b 100755 --- a/windows2usb +++ b/windows2usb @@ -64,7 +64,7 @@ function get_iso_name() { } function check_installwim_gt4gib() { - 7z l "$1" | awk '($6 ~ /install.wim/) {if ($4 > 4294967296) {exit 0}; exit 1}' + 7z l "$1" | awk '($6 ~ /install.wim/) {if ($4 > 4294967296) {exit 0}; exit 1} END {exit 1}' } function create_partitions() {