过滤掉 @cloud 结尾的目录不做 git pull 和 npm run boot

This commit is contained in:
luk.lu
2021-08-18 10:45:39 +08:00
parent 1ea14cee5f
commit 6ce99af4a9
4 changed files with 33 additions and 20 deletions

View File

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