This commit is contained in:
陆柯 2021-08-17 20:23:42 +08:00
parent e5542ea0c9
commit 1ea14cee5f
3 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect
## Usage: expect this.sh [user@hostname] [filepath] [password]
## Example: expect this.sh adot@server.log.yuanjin.net /faronear/tac.log/log.server.torm 密码
## Example: expect this.sh adot@m1.bittic.net /faronear/tic/star.core.torm 密码
set timeout 30
spawn ssh [lindex $argv 0]

View File

@ -38,11 +38,11 @@ do
for repo in `ls .`
do
if [ -d $repo/.git ]
then
echo "--- git pulling: $org/$repo"
cd $repo
git pull
cd ..
then
echo "--- git pulling: $org/$repo"
cd $repo
git pull
cd ..
fi
done
cd ..;

View File

@ -38,11 +38,11 @@ do
for repo in `ls .`
do
if ( [ -f $repo/package.json ] && grep -q '"boot"' $repo/package.json )
then
echo '>>>>>> npm booting: ' $org/$repo
cd $repo
npm run boot
cd ..
then
echo '>>>>>> npm booting: ' $org/$repo
cd $repo
npm run boot
cd ..
fi
done
cd ..;