Files
dvcp-node-service/shell/update.sh
2022-12-21 08:43:58 +08:00

13 lines
200 B
Bash

#!/usr/bin/expect
set Name [lindex $argv 0]
set Prj [lindex $argv 1]
puts "更新$Name"
cd $Prj
spawn git pull
expect "Username"
send "aixianling\r"
expect "Password"
send "axl123.0\r"
interact
cd ..