This commit is contained in:
陆柯 2021-11-30 21:54:54 +08:00
parent c0b4983585
commit c1319324e8
3 changed files with 15 additions and 6 deletions

View File

@ -21,6 +21,7 @@ if not exist %BASEDIR% (
pushd %BASEDIR% pushd %BASEDIR%
echo *** Current path = [%CD%] *** echo *** Current path = [%CD%] ***
echo;
@REM 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 ) @REM 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 )
@ -30,14 +31,17 @@ for /d %%o in (*) do (
@REM 每次 git pull 都会造成 .git 目录下某些文件变化,导致云端不断自动同步。因此过滤掉 *@cloud 的目录不做更新。 @REM 每次 git pull 都会造成 .git 目录下某些文件变化,导致云端不断自动同步。因此过滤掉 *@cloud 的目录不做更新。
echo %%o | findstr "@cloud" >NUL && ( echo %%o | findstr "@cloud" >NUL && (
echo !!! omitting [%BASEDIR%\%%o] echo !!! omitting [%BASEDIR%\%%o]
echo;
) || ( ) || (
echo entering [%BASEDIR%\%%o] echo entering [%BASEDIR%\%%o]
echo;
pushd %%o pushd %%o
for /d %%g in (*) do ( for /d %%g in (*) do (
if exist %%g\.git ( if exist %%g\.git (
pushd %%g pushd %%g
echo git pulling [%BASEDIR%\%%o\%%g] echo git pulling [%BASEDIR%\%%o\%%g]
git pull git pull
echo;
popd popd
) )
) )

View File

@ -30,11 +30,14 @@ fi
pushd $FONPATH pushd $FONPATH
echo "*** Current path = [`pwd`] ***" echo "*** Current path = [`pwd`] ***"
echo ""
for org in `ls | grep -v @cloud` for org in `ls | grep -v @cloud`
do do
if [ -d $org ] if [ -d $org ]
then then
echo "entering [$FONPATH/$org]" echo "entering [$FONPATH/$org]"
echo ""
cd $org; cd $org;
for repo in `ls .` for repo in `ls .`
do do
@ -43,10 +46,11 @@ do
echo "git pulling [$FONPATH/$org/$repo]" echo "git pulling [$FONPATH/$org/$repo]"
cd $repo cd $repo
git pull git pull
echo ""
cd .. cd ..
fi fi
done done
cd ..; cd ..
fi fi
done done
popd popd

1
install-nodejs-centos.sh Normal file
View File

@ -0,0 +1 @@
curl --silent --location https://rpm.nodesource.com/setup_16.x | bash