remove old ventoy folder when reusing dir

This commit is contained in:
Samega7Cattac 2022-09-23 02:15:33 +01:00
parent 063ed2c9ae
commit cb9d51390e
No known key found for this signature in database
GPG Key ID: D084C57D85D7477B

View File

@ -60,7 +60,7 @@ rm latest
echo -e "Attempting to download Ventoy Version: ${venver: -6}\n\n\n" echo -e "Attempting to download Ventoy Version: ${venver: -6}\n\n\n"
wget https://github.com/ventoy/Ventoy/releases/download/v${venver: -6}/ventoy-${venver: -6}-linux.tar.gz -O ventoy.tar.gz wget https://github.com/ventoy/Ventoy/releases/download/v${venver: -6}/ventoy-${venver: -6}-linux.tar.gz -O ventoy.tar.gz
tar -xf ventoy.tar.gz tar -xf ventoy.tar.gz
rm ventoy.tar.gz rm -rf ventoy.tar.gz ./ventoy/ventoy-${venver: -6}
mv ventoy-${venver: -6} ventoy mv ventoy-${venver: -6} ventoy
echo -e "\n\n\n\n\n\n" echo -e "\n\n\n\n\n\n"
if [[ -f MediCat.USB.v21.12.7z ]]; then if [[ -f MediCat.USB.v21.12.7z ]]; then