configure git username and email in bootstrap script
This commit is contained in:
@@ -25,8 +25,15 @@ mkdir -p "/root/desktop"
|
||||
mkdir -p "/root/venvs"
|
||||
|
||||
# Clone SIA repository
|
||||
echo "Cloning SIA repository..."
|
||||
[ ! -d "/root/sia" ] && git clone "https://$SIA_REPO_USER:$SIA_REPO_PAT@${SIA_REPO_URL#https://}" "/root/sia"
|
||||
if [ ! -d "/root/sia" ]; then
|
||||
echo "Cloning SIA repository..."
|
||||
git clone "https://$SIA_REPO_USER:$SIA_REPO_PAT@${SIA_REPO_URL#https://}" "/root/sia"
|
||||
|
||||
echo "Configuring git user and email..."
|
||||
cd "/root/sia"
|
||||
git config --global user.name "Niels Geens"
|
||||
git config --global user.email "niels.geens@gmail.com"
|
||||
fi
|
||||
|
||||
# Fixing permissions
|
||||
echo "Fixing permissions..."
|
||||
|
||||
Reference in New Issue
Block a user