diff --git a/git-pull-all.bat b/git-pull-all.bat index 2380a1a..f6b0c9c 100644 --- a/git-pull-all.bat +++ b/git-pull-all.bat @@ -21,6 +21,7 @@ if not exist %BASEDIR% ( pushd %BASEDIR% 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 ) @@ -29,15 +30,18 @@ for /d %%o in (*) do ( if not %%o == .vscode ( @REM 每次 git pull 都会造成 .git 目录下某些文件变化,导致云端不断自动同步。因此过滤掉 *@cloud 的目录不做更新。 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 for /d %%g in (*) do ( if exist %%g\.git ( pushd %%g - echo git pulling [%BASEDIR%\%%o\%%g] + echo git pulling [%BASEDIR%\%%o\%%g] git pull + echo; popd ) ) diff --git a/git-pull-all.sh b/git-pull-all.sh index e769c0b..3564345 100755 --- a/git-pull-all.sh +++ b/git-pull-all.sh @@ -30,23 +30,27 @@ fi pushd $FONPATH echo "*** Current path = [`pwd`] ***" +echo "" + for org in `ls | grep -v @cloud` do if [ -d $org ] then - echo " entering [$FONPATH/$org]" + echo "entering [$FONPATH/$org]" + echo "" cd $org; for repo in `ls .` do if [ -d $repo/.git ] then - echo " git pulling [$FONPATH/$org/$repo]" + echo "git pulling [$FONPATH/$org/$repo]" cd $repo git pull + echo "" cd .. fi done - cd ..; + cd .. fi done popd diff --git a/install-nodejs-centos.sh b/install-nodejs-centos.sh new file mode 100644 index 0000000..b2b235a --- /dev/null +++ b/install-nodejs-centos.sh @@ -0,0 +1 @@ +curl --silent --location https://rpm.nodesource.com/setup_16.x | bash \ No newline at end of file