Check if GCM is already installed
This commit is contained in:
parent
f8b7498a62
commit
03b7ef50ee
1 changed files with 8 additions and 3 deletions
|
@ -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 #
|
||||
|
|
Loading…
Reference in a new issue