This commit is contained in:
陆柯 2022-10-24 16:53:00 +08:00
parent fcd08cd98e
commit 37dad5a3bd
5 changed files with 39 additions and 47 deletions

View File

@ -77,9 +77,9 @@ popd
mkdir tuc
pushd tuc
git clone https://git.faronear.org/tuc/tisch fork/tisch.git
git clone https://git.faronear.org/tuc/nesh fork/nesh.git
git clone https://git.faronear.org/tuc/nbtc fork/nbtc.git
git clone https://git.faronear.org/tuc/fork-tisch fork/tisch.git
git clone https://git.faronear.org/tuc/fork-nesh fork/nesh.git
git clone https://git.faronear.org/tuc/fork-nbtc fork/nbtc.git
git clone https://git.faronear.org/tuc-pex/pex-blog-hexo pex/pex-blog-hexo.git
git clone https://git.faronear.org/tuc-pex/pex-chain-geth pex/pex-chain-geth.git

View File

@ -34,10 +34,7 @@ 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 )
for /d %%o in (*) do (
@REM windows的链接文件会造成路径错误从而终止该循环从而导致下一轮乃至所有循环的工作目录错误。因此要过滤掉 .vscode 这个符号链接目录。
if not "%%o" == ".vscode" (
@REM 如果同时使用了 GIT 和 云盘进行管理,每次 git pull 都会造成 .git 目录下某些文件变化,导致云盘不断自动同步。因此过滤掉云盘的目录不做更新。
@REM echo "%%o" | findstr "=" >NUL && (
@REM echo "%%o" | findstr "node_modules" >NUL && (
@REM echo !!!!!!!! omitting [%FONPATH%\%%o] !!!!!!!!
@REM echo;
@REM ) || (
@ -55,7 +52,6 @@ for /d %%o in (*) do (
)
popd
@REM )
)
)
popd

View File

@ -37,7 +37,7 @@ echo "*** Starting from [`pwd`] ***"
echo ""
# for org in `ls -F | grep '/$' | grep -v '~'` ## 首先过滤出所有子目录,然后过滤出所有不含 ~ 的子目录。注意 for ??? in `ls ???` 是按照空行以及空格进行分割的,因此最后筛选出的目录名不能含有空格,否则就被分割成多个了。
ls -F | grep '/$' | grep -v '=' | while read org ## 换用这种方法,可以成功过滤出含有空格的完整目录名
ls -F | grep '/$' | grep -v 'node_modules' | while read org ## 换用这种方法,可以成功过滤出含有空格的完整目录名
do
echo "======== entering [$FONPATH/$org] ========"
echo ""

View File

@ -41,10 +41,7 @@ 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 )
for /d %%o in (*) do (
@REM windows的链接文件会造成路径错误从而终止该循环从而导致下一轮乃至所有循环的工作目录错误。因此要过滤掉 .vscode 这个符号链接目录。
if not "%%o" == ".vscode" (
@REM 如果同时使用了 GIT 和 云盘进行管理,每次 git push 都会造成 .git 目录下某些文件变化,导致云盘不断自动同步。因此过滤掉云盘的目录不做更新。
@REM echo "%%o" | findstr "=" >NUL && (
@REM echo "%%o" | findstr "node_modules" >NUL && (
@REM echo !!!!!!!! omitting [%FONPATH%\%%o] !!!!!!!!
@REM echo;
@REM ) || (
@ -62,7 +59,6 @@ for /d %%o in (*) do (
)
popd
@REM )
)
)
popd

View File

@ -45,7 +45,7 @@ fi
echo ""
# for org in `ls -F | grep '/$' | grep -v '~'` ## 首先过滤出所有子目录,然后过滤出所有不含 ~ 的子目录。注意 for ??? in `ls ???` 是按照空行以及空格进行分割的,因此最后筛选出的目录名不能含有空格,否则就被分割成多个了。
ls -F | grep '/$' | grep -v '=' | while read org ## 换用这种方法,可以成功过滤出含有空格的完整目录名
ls -F | grep '/$' | grep -v 'node_modules' | while read org ## 换用这种方法,可以成功过滤出含有空格的完整目录名
do
echo "======== entering [$FONPATH/$org] ========"
echo ""