update spawn command

This commit is contained in:
Joseph Le 2023-10-03 07:37:22 +00:00
parent 2d56df55f8
commit d4ac75b45d
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
#File chua bien moi truong
source /home/joseph/gitea_CICD/service/giteaService
source /home/joseph/abc/gitea_CICD/service/giteaService
#URL project
project=$PROJECT_PATH
@ -20,11 +20,15 @@ username=$GIT_USERNAME
#Password git
password=$GIT_PASSWORD
#Git branch
branch=$GIT_BRANCH
cd $project
result=$(expect -c "
set timeout 10
spawn git pull
spawn git pull origin \$branch
expect {
\"Username for *\" {
send \"$username\r\"