From 208609e09c7bde71c03dac0cf8769f042de749b3 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Mon, 7 May 2018 19:23:56 +0300 Subject: [PATCH] Fix detection of install.wim > 4GiB --- windows2usb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows2usb b/windows2usb index dd6b20d..51d676b 100755 --- a/windows2usb +++ b/windows2usb @@ -40,7 +40,7 @@ function format_drive() { } function check_installwim_gt4gib() { - 7z l "$1" | awk '($6 ~ /install.wim/) {if ($4 > 429496296) {exit 1}; exit}' + 7z l "$1" | awk '($6 ~ /install.wim/) {if ($4 > 4294967296) {exit 0}; exit 1}' } function create_partitions() {