Skip to content

Commit

Permalink
Fix the warning prompt for Ventoy2Disk.sh (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Oct 6, 2023
1 parent 7f63a1c commit 3ff1867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion INSTALL/tool/VentoyWorker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ if [ "$MODE" = "install" -a -z "$NONDESTRUCTIVE" ]; then
fi

if [ "$PARTTOOL" = "parted" ]; then
if parted $DISK p | grep -i -q 'sector size.*4096.*4096'; then
if parted -s $DISK p 2>&1 | grep -i -q 'sector size.*4096.*4096'; then
vterr "Currently Ventoy does not support 4K native device."
exit 1
fi
Expand Down

0 comments on commit 3ff1867

Please sign in to comment.