mirror of
https://github.com/envmodules/modules.git
synced 2026-05-30 00:12:31 +08:00
14 lines
334 B
Batchfile
14 lines
334 B
Batchfile
@echo off
|
|
|
|
:: initialize Modules if not already done
|
|
if not defined MODULES_CMD (
|
|
call "%~dp0..\init\cmd.cmd"
|
|
)
|
|
|
|
set OUTPUT=
|
|
:: execute each output line in cmd shell
|
|
for /f "tokens=*" %%I in ('call tclsh "%MODULES_CMD%" cmd ml %*') do %%I
|
|
|
|
:: quit with error code produced by modulecmd
|
|
if %errorlevel% NEQ 0 (exit /b %errorlevel%)
|