mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-27 12:55:40 +01:00
Delete output/downloads folders on exec
This commit is contained in:
parent
c7ac36bc63
commit
546e82e864
16
run.bat
16
run.bat
@ -1,6 +1,22 @@
|
|||||||
@echo off
|
@echo off
|
||||||
setlocal enabledelayedexpansion
|
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
|
rem GitHub repository information
|
||||||
set repoOwner=RaphiMC
|
set repoOwner=RaphiMC
|
||||||
set repoName=JavaDowngrader
|
set repoName=JavaDowngrader
|
||||||
|
16
run.sh
16
run.sh
@ -2,6 +2,22 @@
|
|||||||
|
|
||||||
set -e
|
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
|
# GitHub repository information
|
||||||
repoOwner="RaphiMC"
|
repoOwner="RaphiMC"
|
||||||
repoName="JavaDowngrader"
|
repoName="JavaDowngrader"
|
||||||
|
Loading…
Reference in New Issue
Block a user