format
This commit is contained in:
		
							parent
							
								
									e5542ea0c9
								
							
						
					
					
						commit
						1ea14cee5f
					
				| @ -1,7 +1,7 @@ | |||||||
| #!/usr/bin/expect | #!/usr/bin/expect | ||||||
| 
 | 
 | ||||||
| ## Usage: expect this.sh [user@hostname] [filepath] [password] | ## 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 | set timeout 30 | ||||||
| spawn ssh [lindex $argv 0] | spawn ssh [lindex $argv 0] | ||||||
|  | |||||||
| @ -38,11 +38,11 @@ do | |||||||
|     for repo in `ls .` |     for repo in `ls .` | ||||||
|     do |     do | ||||||
|       if [ -d $repo/.git ] |       if [ -d $repo/.git ] | ||||||
|         then |       then | ||||||
|           echo "--- git pulling: $org/$repo" |         echo "--- git pulling: $org/$repo" | ||||||
|           cd $repo |         cd $repo | ||||||
|           git pull |         git pull | ||||||
|           cd .. |         cd .. | ||||||
|       fi |       fi | ||||||
|     done |     done | ||||||
|     cd ..; |     cd ..; | ||||||
|  | |||||||
| @ -38,11 +38,11 @@ do | |||||||
|     for repo in `ls .` |     for repo in `ls .` | ||||||
|     do |     do | ||||||
|       if ( [ -f $repo/package.json ] && grep -q '"boot"' $repo/package.json ) |       if ( [ -f $repo/package.json ] && grep -q '"boot"' $repo/package.json ) | ||||||
|         then |       then | ||||||
|           echo '>>>>>> npm booting: ' $org/$repo |         echo '>>>>>> npm booting: ' $org/$repo | ||||||
|           cd $repo |         cd $repo | ||||||
|           npm run boot |         npm run boot | ||||||
|           cd .. |         cd .. | ||||||
|       fi |       fi | ||||||
|     done |     done | ||||||
|     cd ..; |     cd ..; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user