Move installs, add vs code install

This commit is contained in:
askiiart 2023-09-10 12:35:10 -05:00
parent aa7d52cef3
commit 013e82d56d
No known key found for this signature in database
GPG key ID: C89CBC4F981EE719
15 changed files with 58 additions and 6 deletions

View file

@ -38,10 +38,17 @@ fi
if [ -d "${HOME}/git-credential-manager" ]; 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
rm dotnet-install.sh
if command_exists "apt-get"; then
curl $(curl -s https://api.github.com/repos/git-ecosystem/git-credential-manager/releases/latest | grep "browser_download_url.*gcm-linux_amd64.*.deb" | cut -d : -f 2,3 | tr -d \") -LO
chmod 777 ./gcm-linux_amd64.*.deb
sudo apt-get install ./gcm-linux_amd64.*.deb -y
rm -f ./gcm-linux_amd64.*.deb
else
# Install git credential manager
curl -L https://aka.ms/gcm/linux-install-source.sh | sh
git-credential-manager configure
rm dotnet-install.sh
fi
fi
############################################