Skip to content

Commit bf905d2

Browse files
Add bat script
1 parent e5aad27 commit bf905d2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@echo off
2+
setlocal EnableDelayedExpansion
3+
set "SOURCE=\\isis.cclrc.ac.uk\inst$\Kits$\CompGroup\ICP\Releases"
4+
call "%~dp0install_or_update_uv.bat"
5+
call "%~dp0set_up_venv.bat"
6+
IF %errorlevel% neq 0 goto ERROR
7+
8+
git --version
9+
10+
IF %errorlevel% neq 0 (
11+
echo No installation of Git found on machine. Please download Git from https://git-scm.com/downloads before proceeding.
12+
goto ERROR
13+
)
14+
15+
REM Matches current MySQL version
16+
uv pip install mysql-connector-python==8.4.0
17+
18+
python -u part_truncate_archive.py %*
19+
IF %errorlevel% neq 0 goto ERROR
20+
call rmdir /s /q %UV_TEMP_VENV%
21+
22+
exit /b 0
23+
24+
:ERROR
25+
set errcode = %ERRORLEVEL%
26+
call rmdir /s /q %UV_TEMP_VENV%
27+
EXIT /b !errcode!

0 commit comments

Comments
 (0)