mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-03-13 21:12:58 -04:00
Proposal: Do not prompt for confirmation when '-I' is set
Change made in response to this question https://forums.ventoy.net/showthread.php?tid=475 Should -I perform the installation without user prompt?
This commit is contained in:
parent
1bf3e73373
commit
429080cc7f
@ -175,28 +175,29 @@ if [ "$MODE" = "install" ]; then
|
|||||||
fi
|
fi
|
||||||
echo ''
|
echo ''
|
||||||
|
|
||||||
vtwarn "Attention:"
|
if [ -z "$FORCE" ]; then
|
||||||
vtwarn "You will install Ventoy to $DISK."
|
vtwarn "Attention:"
|
||||||
vtwarn "All the data on the disk $DISK will be lost!!!"
|
vtwarn "You will install Ventoy to $DISK."
|
||||||
echo ""
|
vtwarn "All the data on the disk $DISK will be lost!!!"
|
||||||
|
echo ""
|
||||||
read -p 'Continue? (y/n)' Answer
|
|
||||||
if [ "$Answer" != "y" ]; then
|
read -p 'Continue? (y/n)' Answer
|
||||||
if [ "$Answer" != "Y" ]; then
|
if [ "$Answer" != "y" ]; then
|
||||||
exit 0
|
if [ "$Answer" != "Y" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
vtwarn "All the data on the disk $DISK will be lost!!!"
|
||||||
|
read -p 'Double-check. Continue? (y/n)' Answer
|
||||||
|
if [ "$Answer" != "y" ]; then
|
||||||
|
if [ "$Answer" != "Y" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
|
||||||
vtwarn "All the data on the disk $DISK will be lost!!!"
|
|
||||||
read -p 'Double-check. Continue? (y/n)' Answer
|
|
||||||
if [ "$Answer" != "y" ]; then
|
|
||||||
if [ "$Answer" != "Y" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ $disk_sector_num -le $VENTOY_SECTOR_NUM ]; then
|
if [ $disk_sector_num -le $VENTOY_SECTOR_NUM ]; then
|
||||||
vterr "No enough space in disk $DISK"
|
vterr "No enough space in disk $DISK"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user