This commit is contained in:
askiiart 2023-09-13 07:58:18 -05:00
parent 97a093714e
commit f21e981cbf
No known key found for this signature in database
GPG key ID: 94789D499CBE78CE

View file

@ -3,6 +3,8 @@
set -e set -e
# Modify constants as needed # Modify constants as needed
GITEA_URL="https://git.askiiart.net" GITEA_URL="https://git.askiiart.net"
GIT_NAME="askiiart"
GIT_EMAIL="dev@askiiart.net"
# Note: This waits until enter is pressed # Note: This waits until enter is pressed
# read -p "Press Enter to continue" < /dev/tty # read -p "Press Enter to continue" < /dev/tty
@ -44,7 +46,6 @@ else
else else
# Install git credential manager # Install git credential manager
curl -L https://aka.ms/gcm/linux-install-source.sh | sh curl -L https://aka.ms/gcm/linux-install-source.sh | sh
git-credential-manager configure
rm dotnet-install.sh rm dotnet-install.sh
fi fi
fi fi
@ -64,11 +65,11 @@ else
fi fi
echo Doing git config stuff... echo Doing git config stuff...
git config --global credential.credentialStore gpg
git config --global user.name "${NAME}" git config --global user.name "${NAME}"
git config --global user.email "${EMAIL}" git config --global user.email "${EMAIL}"
git config --global user.signingkey ${KEY_ID} git config --global user.signingkey ${KEY_ID}
git config --global commit.gpgsign true git config --global commit.gpgsign true
git-credential-manager configure
pass init ${KEY_ID} pass init ${KEY_ID}
############# #############