U
This commit is contained in:
@@ -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
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user