Fix: handle whitespace paths for Windows launchers

This commit is contained in:
Dominic Della Valle
2021-07-10 04:46:07 -04:00
committed by Ryan Kurtz
parent 3c1e51d0c0
commit 2296256464
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ set "SERVER_DIR=%~dp0"
set "SERVER_DIR=%SERVER_DIR:~0,-1%"
rem Ensure Ghidra path doesn't contain illegal characters
if not %SERVER_DIR:!=%==%SERVER_DIR% (
if not "%SERVER_DIR:!=%"=="%SERVER_DIR%" (
echo Ghidra path cannot contain a "!" character.
exit /B 1
)