script recognize submodules
This commit is contained in:
+8
-1
@@ -55,9 +55,16 @@ if not defined ps1 (
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Running PowerShell update script...
|
||||
REM Run from batch directory (sequences next to batch, or submodule root)
|
||||
set "WORK_DIR=%script_dir%"
|
||||
if "%WORK_DIR:~-1%"=="\" set "WORK_DIR=%WORK_DIR:~0,-1%"
|
||||
pushd "%WORK_DIR%" >nul 2>&1
|
||||
|
||||
echo Running PowerShell update script in %WORK_DIR%...
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
||||
set "rc=%errorlevel%"
|
||||
|
||||
popd >nul 2>&1
|
||||
echo PowerShell exited with RC=%rc%
|
||||
echo Done.
|
||||
pause >nul
|
||||
|
||||
Reference in New Issue
Block a user