Fix the warning prompt for Ventoy2Disk.sh (#2593)

This commit is contained in:
longpanda 2023-10-06 22:05:39 +08:00
parent 7f63a1c327
commit 3ff1867a2a
1 changed files with 1 additions and 1 deletions

View File

@ -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