Ventoy Forums
Linux script - Bug? - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use —— Ventoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: Linux script - Bug? (/showthread.php?tid=475)



Linux script - Bug? - GCMartin - 08-24-2020

Ventoy Linux script help shows "-I" & "-i" for creating the bootable Ventoy disk.

The understand I get from the help and other documentation is that 1 will ask user confirmation, while the other will not. But, in both cases, -i and in -I, the scripts asks confirmation. Namely
Code:
Attention:
You will install Ventoy to /dev/sdb.
All the data on the disk /dev/sdb will be lost!!!

Continue? (y/n)y

All the data on the disk /dev/sdb will be lost!!!
Double-check. Continue? (y/n)y
The script does create a bootable Ventoy, so either one of the options is a bug or one of them should be removed.


Hope this helps


RE: Linux script - Bug? - longpanda - 08-24-2020

You will see the difference if the /dev/sdb already contains Ventoy in it.


RE: Linux script - Bug? - GCMartin - 08-26-2020

OK, I see that one is to be used when Ventoy is present and the other when it is NOT present? Is that correct?

If so, 1 of 2 things might be appropriate:
  • A change in the help file and documentation to reflect when one vs the other
  • Combine them such that if becomes a install/update question using only one of the options
I say this merely to add some clearer meaning to those options

P.S. I do realize that this is NOT high priority. It is merely a documentation need for clearness.