#!/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"

相关文章:

  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2021-06-12
  • 2021-10-04
  • 2021-09-20
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2022-01-04
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
相关资源
相似解决方案