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
|
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 #
|
||||||
|
|
Loading…
Reference in a new issue