Commit 832162db authored by QA—张 博's avatar QA—张 博

优化查看所有分支脚本

parent 8270cd22
......@@ -10,7 +10,7 @@ function Git_branch(){
set timeout 10
spawn ssh root@${ip}
expect \"]#\"
send \"for x in `find /home/quant_group/ -maxdepth 2 -name .git`;do cd $(dirname $x);echo $(dirname $x):;git branch | grep '*';done\r\"
send \"sh /home/qa-deploy-utils/qa_shell_script/script_by_Contorller/find_branch.sh\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
......@@ -23,7 +23,7 @@ function Git_branch(){
expect \"]#\"
send \"cd /home/quant_group/$2\r\"
expect \"]#\"
send \"git status | grep On\r\"
send \"git branch | grep '*'\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
......
for x in `find /home/quant_group/ -maxdepth 2 -name .git`;do cd $(dirname $x);echo $(dirname $x):;git branch | grep '*';done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment