This commit is contained in:
pika 2025-04-10 21:15:38 +02:00
parent 56fe3a0c7c
commit 2271246157

View file

@ -40,17 +40,18 @@ gitUserSetup() {
git config --global user.email "$g_mail"
git config --global init.defaultBranch "$g_branch"
echo_note "Enter your authentication token:"
read -r -s g_token # The '-s' flag hides input for privacy
if ! -e "$CREDENTIALS_FILE"; then
echo_note "Enter your authentication token:"
read -r -s g_token # The '-s' flag hides input for privacy
# Append the new credentials to the file
echo "https://$g_username:$g_token@$g_domain" >>"$CREDENTIALS_FILE"
# Append the new credentials to the file
echo "https://$g_username:$g_token@$g_domain" >>"$CREDENTIALS_FILE"
echo "Credentials added for $g_domain in $CREDENTIALS_FILE"
echo "Credentials added for $g_domain in $CREDENTIALS_FILE"
git config --global credential.helper store
git config --global credential.helper store
chmod 600 "$HOME/.git-credentials"
chmod 600 "$HOME/.git-credentials"
fi
}
gitDirSetup() {