Check if GCM is already installed

This commit is contained in:
askiiart 2023-08-21 22:08:51 -05:00
parent f8b7498a62
commit 03b7ef50ee
No known key found for this signature in database
GPG key ID: 85505F3A2264FA01

View file

@ -26,9 +26,14 @@ done
sudo ${PACKAGE_MANAGER} install pass git -y sudo ${PACKAGE_MANAGER} install pass git -y
# Install git credential manager # Check if GCM is installed
curl -L https://aka.ms/gcm/linux-install-source.sh | sh if [ -f "${HOME}/.git-credentials" ]; then
git-credential-manager configure echo "Git Credential Manager already installed, skipping..."
else
# Install git credential manager
curl -L https://aka.ms/gcm/linux-install-source.sh | sh
git-credential-manager configure
fi
############################################ ############################################
# Do GPG key stuff for commit verification # # Do GPG key stuff for commit verification #