#!/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}
"; exp_continue } "*Password*" { send "${CONPASS}
" }; interact"