Update gibMacOS.bat

This commit is contained in:
CorpNewt 2019-02-21 13:29:15 -06:00 committed by GitHub
parent 122fa6b540
commit 6f07885e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,20 @@
setlocal enableDelayedExpansion
REM Setup initial vars
set "script_name=gibMacOS.command"
set "script_name=%~n0.command"
set "thisDir=%~dp0"
REM Check for our script first
if not exist "!thisDir!\!script_name!" (
echo Could not find !script_name!.
echo Please make sure to run this script from the same directory
echo as !script_name!.
echo.
echo Press [enter] to quit.
pause > nul
exit /b
)
REM Get python location
FOR /F "tokens=* USEBACKQ" %%F IN (`where python 2^> nul`) DO (
SET "python=%%F"
@ -31,4 +42,4 @@ if "%*"=="" (
"!python!" "!thisDir!!script_name!"
) else (
"!python!" "!thisDir!!script_name!" %*
)
)