shell脚本自动拉取git代码
#!/bin/bash
CONUSER='username'
CONPASS='password'
cd /data/web/
git reset --hard
expect -c "spawn git clone https://gitlabcd.uniontech.com/autotest/cd-desktop-app.git; expect \"*Username*\" { send \"${CONUSER}\n\"; exp_continue } \"*Password*\" { send \"${CONPASS}\n\" }; interact"
本文来自博客园,作者:mikigo,转载请注明原文链接:https://www.cnblogs.com/mikigo/p/13730242.html