Delete output/downloads folders on exec

This commit is contained in:
FlorianMichael 2024-06-26 19:32:08 +02:00
parent c7ac36bc63
commit 546e82e864
2 changed files with 32 additions and 0 deletions

16
run.bat
View File

@ -1,6 +1,22 @@
@echo off
setlocal enabledelayedexpansion
IF EXIST "output" (
echo Folder "output" exists. Deleting...
rmdir /s /q "output"
echo Folder "output" has been deleted.
) ELSE (
echo Folder "output" does not exist.
)
IF EXIST "downloads" (
echo Folder "downloads" exists. Deleting...
rmdir /s /q "downloads"
echo Folder "downloads" has been deleted.
) ELSE (
echo Folder "downloads" does not exist.
)
rem GitHub repository information
set repoOwner=RaphiMC
set repoName=JavaDowngrader

16
run.sh
View File

@ -2,6 +2,22 @@
set -e
if [ -d "output" ]; then
echo "Folder 'output' exists. Deleting..."
rm -rf "output"
echo "Folder 'output' has been deleted."
else
echo "Folder 'output' does not exist."
fi
if [ -d "downloads" ]; then
echo "Folder 'downloads' exists. Deleting..."
rm -rf "downloads"
echo "Folder 'downloads' has been deleted."
else
echo "Folder 'downloads' does not exist."
fi
# GitHub repository information
repoOwner="RaphiMC"
repoName="JavaDowngrader"