u
This commit is contained in:
@@ -1,17 +1,29 @@
|
||||
@echo off
|
||||
|
||||
@ IF "%1" == "" (if exist D:\faronear (set BASEDIR=D:\faronear) else (set BASEDIR=..\..)) else (set BASEDIR=%1)
|
||||
echo [ Goto %BASEDIR% as base directory ]
|
||||
|
||||
if not exist %BASEDIR% (
|
||||
echo *** [%BASEDIR%] not exist! Exit now. ***
|
||||
@ GOTO END
|
||||
)
|
||||
|
||||
pushd %BASEDIR%
|
||||
echo [ %CD% ]
|
||||
for /d %%d in (*) do pushd %%d & (for /d %%d in (*) do if exist %%d/.git (pushd %%d & echo --- git pulling: %%d ... & git pull & popd)) & popd
|
||||
echo *** Current path = [%CD%] ***
|
||||
for /d %%d in (*) do (
|
||||
pushd %%d
|
||||
for /d %%d in (*) do (
|
||||
if exist %%d/.git (
|
||||
pushd %%d
|
||||
echo --- git pulling: %%d ...
|
||||
git pull
|
||||
popd
|
||||
)
|
||||
)
|
||||
popd
|
||||
)
|
||||
popd
|
||||
|
||||
pause
|
||||
@GOTO END
|
||||
|
||||
:EMPTY
|
||||
@ echo Empty target! Please assign a target path.
|
||||
@ GOTO END
|
||||
|
||||
:END
|
||||
|
||||
Reference in New Issue
Block a user