X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/c8e86938feedfcdb089a26cc18d476ead303d50e..bf4e014023e6fd7b117b4f086fc0c190d46ecdcf:/INSTALL/Ventoy2Disk.sh diff --git a/INSTALL/Ventoy2Disk.sh b/INSTALL/Ventoy2Disk.sh index 02a6906..7947360 100644 --- a/INSTALL/Ventoy2Disk.sh +++ b/INSTALL/Ventoy2Disk.sh @@ -1,11 +1,15 @@ #!/bin/sh +if [ -f ./ventoy/version ]; then + curver=$(cat ./ventoy/version) +fi echo '' -echo '***********************************************************' -echo '* Ventoy2Disk Script *' -echo '* longpanda admin@ventoy.net *' -echo '***********************************************************' +echo '**********************************************' +echo " Ventoy: $curver" +echo " longpanda admin@ventoy.net" +echo " https://www.ventoy.net" +echo '**********************************************' echo '' OLDDIR=$PWD @@ -39,12 +43,17 @@ if ! [ -f ./tool/ash ]; then if ! [ -f ./tool/ash ]; then echo 'Failed to decompress tools ...' - cd $OLDDIR + if [ -n "$OLDDIR" ]; then + cd $OLDDIR + fi exit 1 fi fi ./tool/ash ./tool/VentoyWorker.sh $* -cd $OLDDIR +if [ -n "$OLDDIR" ]; then + cd $OLDDIR +fi +