expect 自动交互git 子模块拉取代码

    技术2024-07-28  73

    #!/usr/tcl/bin/expect #set timeout 30 #set username "daima" #set password "123456789" git clone git@git.rpdns.com:s2b2c/order-api.git cd order-api/ git submodule init /usr/bin/expect <<-EOF set timeout 30 spawn git submodule update expect "Username" {send "daima\r"} expect "Password" {send "123456789\r"} expect eof EOF

     

    Processed: 0.030, SQL: 9