HEnvBox/upgrade.bat

18 lines
431 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
@rem HEnvBox目录
set HENVBOX_ROOT_PATH=%~dp0
@rem 更新代码若采用git管理源代码
set HENVBOX_UPGRADE=1
pushd "%HENVBOX_ROOT_PATH%"
if not exist "%HENVBOX_ROOT_PATH%\.git" goto :UPGRADE_EXIT
if not exist "%HENVBOX_ROOT_PATH%\config.bat" goto :UPGRADE_EXIT
call "%HENVBOX_ROOT_PATH%\config.bat"
git pull
:UPGRADE_EXIT
popd
@rem 调用install.bat
call "%HENVBOX_ROOT_PATH%\install.bat"