mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-23 12:15:25 +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
|
||||
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
16
run.sh
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user