This commit is contained in:
luk.lu
2022-10-24 12:27:25 +08:00
parent 439c4d6675
commit fcd08cd98e
8 changed files with 24 additions and 21 deletions

View File

@@ -32,14 +32,15 @@ echo *** Starting from [%CD%] ***
echo;
for /d /r %%r in (*) do (
@REM windows的链接文件会造成路径错误从而终止该循环从而导致下一轮乃至所有循环的工作目录错误。因此要过滤掉 .vscode 这个符号链接目录。
if not "%%r" == ".vscode" (
if exist "%%r\.git" (
pushd "%%r"
echo ---- git pulling [%FONPATH%\%%r] ----
git pull --all
echo;
popd
echo "%%r" | findstr "\.git" > NUL || (
echo "%%r" | findstr "node_modules" >NUL || (
if exist "%%r\.git" (
pushd "%%r"
echo ---- git pulling [%%r] ----
git pull --all
echo;
popd
)
)
)
)