Ubisam-MobileGit/tools/sync-main-folder.bat
2026-09-28 17:02:29 +09:00

17 lines
605 B
Batchfile

@echo off
rem Brings the main folder up to the branch the work is done on (TASK-062).
rem
rem sync-main-folder.bat [branch] [folder]
rem
rem The work is done by sync-main-folder.ps1, next to this file. This file has no text other than
rem plain ASCII on purpose: cmd reads a batch file in the system's code page, and Korean text in
rem it was read as commands.
setlocal
set "ARGS="
if not "%~1"=="" set ARGS=-Branch "%~1"
if not "%~2"=="" set ARGS=%ARGS% -Main "%~2"
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0sync-main-folder.ps1" %ARGS%
set "RESULT=%ERRORLEVEL%"
pause
exit /b %RESULT%