generated from Unknown6656-Megacorp/.github
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.bat
More file actions
24 lines (22 loc) · 795 Bytes
/
publish.bat
File metadata and controls
24 lines (22 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
FOR %%p IN (.,pub,publish,Unknown6656.Publisher,../Unknown6656.Publisher) DO (
SET _pyfile="%%p/publish.py"
ECHO looking for python script inside %%p ...
IF EXIST "!_pyfile!" (
ECHO invoking python script !_pyfile! ...
python "!_pyfile!" "%~f0"
GOTO :success
)
)
:failure
ECHO The file 'publish.py' could not be found in one of the following directories:
ECHO - ./
ECHO - pub/
ECHO - publish/
ECHO - Unknown6656.Publisher/
ECHO - ../Unknown6656.Publisher/
ECHO Please clone 'https://github.com/Unknown6656-Megacorp/Unknown6656.Publisher' into the current or corresponding directoy.
:success
SET "_pyfile="
ENDLOCAL