format
This commit is contained in:
parent
e5542ea0c9
commit
1ea14cee5f
@ -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]
|
||||
|
@ -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 ..;
|
||||
|
@ -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 ..;
|
||||
|
Loading…
Reference in New Issue
Block a user