mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 15:40:22 +00:00
apphub
This commit is contained in:
parent
c5f33f64f1
commit
1d4f25c5e5
1 changed files with 5 additions and 0 deletions
|
@ -30,7 +30,12 @@ if [ -f "/websoft9/credentials/git" ]; then
|
|||
content=$(cat /websoft9/credentials/git)
|
||||
username=$(echo "$content" | jq -r '.username')
|
||||
password=$(echo "$content" | jq -r '.password')
|
||||
email=$(echo "$content" | jq -r '.email')
|
||||
echo "start to init git"
|
||||
git config --global user.name $username
|
||||
git config --global user.email $email
|
||||
git config --global user.password $password
|
||||
|
||||
else
|
||||
# git user not exist, output the error message
|
||||
echo "can not init git"
|
||||
|
|
Loading…
Reference in a new issue