Merge pull request #247 from NoahAndrews/fix-path-script
Fix important bugs in the path script for Windowsdaktil_manuform
commit
27e15b5d9f
|
@ -5,8 +5,14 @@ SET CMDLINERUNSTR=%SystemRoot%\system32\cmd.exe
|
||||||
SET NEWPATH1="C:\MinGW\msys\1.0\bin"
|
SET NEWPATH1="C:\MinGW\msys\1.0\bin"
|
||||||
SET NEWPATH2="C:\MinGW\bin"
|
SET NEWPATH2="C:\MinGW\bin"
|
||||||
|
|
||||||
:: Make sure paths exist
|
:: Make sure we're running with administrator privileges
|
||||||
IF NOT EXIST !NEWPATH1! (ECHO Path not found: %NEWPATH1% && GOTO ExitBatch)
|
NET SESSION >nul 2>&1
|
||||||
|
IF ERRORLEVEL 1 (
|
||||||
|
ECHO FAILED. Run this script with administrator privileges.
|
||||||
|
GOTO ExitBatch
|
||||||
|
)
|
||||||
|
|
||||||
|
:: Make sure the second path exists. The first path won't be created until the second script is run
|
||||||
IF NOT EXIST !NEWPATH2! (ECHO Path not found: %NEWPATH2% && GOTO ExitBatch)
|
IF NOT EXIST !NEWPATH2! (ECHO Path not found: %NEWPATH2% && GOTO ExitBatch)
|
||||||
|
|
||||||
:: Add paths
|
:: Add paths
|
||||||
|
|
Loading…
Reference in New Issue