Skip to content

Commit

Permalink
Fix detection of install.wim > 4GiB
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed May 7, 2018
1 parent 618f507 commit 208609e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows2usb
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 208609e

Please # to comment.