Handle possible special characters in a path to kc.bat (#27363)

* enclose the DIRNAME variable in double quotes

Closes #19294

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
This commit is contained in:
Peter Zaoral 2024-02-28 19:21:41 +01:00 committed by GitHub
parent d7c6464ad6
commit b9d92075ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ if "%OS%" == "Windows_NT" (
) )
if "%OS%" == "Windows_NT" ( if "%OS%" == "Windows_NT" (
set DIRNAME=%~dp0% set "DIRNAME=%~dp0"
) else ( ) else (
set DIRNAME=.\ set DIRNAME=.\
) )