From 03b7ef50ee1f024f6e8d86662d8cbb24a9c178cd Mon Sep 17 00:00:00 2001 From: askiiart Date: Mon, 21 Aug 2023 22:08:51 -0500 Subject: [PATCH] Check if GCM is already installed --- daily-use-pcs/fedora/setup-git.bash | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/daily-use-pcs/fedora/setup-git.bash b/daily-use-pcs/fedora/setup-git.bash index ca623f2..8a56103 100755 --- a/daily-use-pcs/fedora/setup-git.bash +++ b/daily-use-pcs/fedora/setup-git.bash @@ -26,9 +26,14 @@ done sudo ${PACKAGE_MANAGER} install pass git -y -# Install git credential manager -curl -L https://aka.ms/gcm/linux-install-source.sh | sh -git-credential-manager configure +# Check if GCM is installed +if [ -f "${HOME}/.git-credentials" ]; then + 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 #