update env source

This commit is contained in:
Joseph Le 2023-10-13 18:35:57 +11:00
parent 82d6753b3c
commit 42d3a298ea
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ PASSWORD=$(echo "$GIT_PASSWORD" | sed 's/@/%40/g')
REPOSITORY_AUTH="https://$USERNAME:$PASSWORD@$(echo $GIT_REPOSITORY | sed 's#https://##')" REPOSITORY_AUTH="https://$USERNAME:$PASSWORD@$(echo $GIT_REPOSITORY | sed 's#https://##')"
echo "$REPOSITORY_AUTH"
cd "$PROJECT_PATH" && cd "$PROJECT_PATH" &&
git config --global --add safe.directory $PROJECT_PATH && git config --global --add safe.directory $PROJECT_PATH &&
SET_ORIGIN=$(git remote set-url origin $REPOSITORY_AUTH) && SET_ORIGIN=$(git remote set-url origin $REPOSITORY_AUTH) &&