File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
@ ECHO OFF
2
-
2
+
3
3
SETLOCAL ENABLEDELAYEDEXPANSION
4
-
4
+
5
5
SET CURRDIR = %CD%
6
6
SET PARENTDIR = !CURRDIR!
7
-
7
+
8
8
:START
9
9
IF EXIST !CURRDIR! \packages\ProjectK* FOR /F %%I IN ('DIR !CURRDIR! \packages\ProjectK* /B /O:-D') DO (SET ProjectKDir=%%I & GOTO :ENDFOR)
10
10
:ENDFOR
11
-
11
+
12
12
SET LocalKCmd = !CURRDIR! \packages\!ProjectKDir! \tools\k.cmd
13
-
13
+
14
14
IF NOT EXIST !LocalKCmd! (
15
- CALL :RESOLVE " !CURRDIR! \.." PARENTDIR
16
- IF !CURRDIR! == !PARENTDIR! (
15
+ CALL :RESOLVE !CURRDIR! \.. PARENTDIR
16
+ IF !CURRDIR! == " !PARENTDIR! " (
17
17
ECHO Unable to locate the ProjectK runtime
18
18
ENDLOCAL & EXIT /b 1
19
19
) ELSE (
20
- SET CURRDIR = !PARENTDIR!
20
+ SET CURRDIR = " !PARENTDIR! "
21
21
GOTO :START
22
22
)
23
23
)
24
-
25
- CALL " !LocalKCmd! " %*
24
+
25
+ CALL !LocalKCmd! %*
26
26
ENDLOCAL & EXIT /b %ERRORLEVEL%
27
-
27
+
28
28
:RESOLVE
29
29
SET %2 =%~f1
30
- GOTO :EOF
30
+ GOTO :EOF
You can’t perform that action at this time.
0 commit comments