mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2024-12-04 13:33:26 +01:00
Update gibMacOS.bat
This commit is contained in:
parent
122fa6b540
commit
6f07885e79
15
gibMacOS.bat
15
gibMacOS.bat
@ -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!" %*
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user