X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/d5b829f8e8c8367b032b4bb57a8fc37701d42e17..39b5edc3453a8d6c3e26cb0b734d5513228a589a:/INSTALL/Ventoy2Disk.sh diff --git a/INSTALL/Ventoy2Disk.sh b/INSTALL/Ventoy2Disk.sh index 1ebf05c..8e05b58 100644 --- a/INSTALL/Ventoy2Disk.sh +++ b/INSTALL/Ventoy2Disk.sh @@ -56,6 +56,15 @@ fi vtdebug "MODE=$MODE FORCE=$FORCE" +if ! [ -f ./boot/boot.img ]; then + if [ -d ./grub ]; then + vterr "Don't run me here, please download the released install package, and run there." + else + vterr "Please run under the right directory!" + fi + exit 1 +fi + #decompress tool cd tool chmod +x ./xzcat