Skip to content

Commit

Permalink
Update maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSolanaceae authored Feb 28, 2024
1 parent 383d0e8 commit 7fadd20
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions update.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
@echo off

echo Updating proXXy...

set REPO_URL="https://github.com/Atropa-Solanaceae/proXXy"
echo Checking for required software...

where python >nul 2>&1
if %errorlevel% neq 0 (
echo Python is required but not installed. Aborting.
exit /b 1
)

where git >nul 2>&1
if %errorlevel% neq 0 (
echo Git is required but not installed. Aborting.
Expand All @@ -16,9 +27,7 @@ if exist "proXXy" (
echo Updating existing repository...
cd proXXy || exit /b
git pull origin

) else (

echo Cloning repository...
git clone %REPO_URL% proXXy
cd proXXy || exit /b
Expand All @@ -29,9 +38,10 @@ pip install -r requirements.txt

echo Copying files...
xcopy /E /Y .\* ..

echo Cleaning up...
pushd ..
rmdir /S /Q proXXy
popd

echo Update completed.
echo Update completed, enjoy your new proXXy!

0 comments on commit 7fadd20

Please sign in to comment.