Minor updates

This commit is contained in:
askiiart 2023-08-23 21:26:13 -05:00
parent 879d78e782
commit b0d81f4f0e
No known key found for this signature in database
GPG key ID: 85505F3A2264FA01

View file

@ -27,23 +27,7 @@ else
echo "Unsupported: unknown package manager"
fi
declare -A osInfo;
osInfo[/etc/redhat-release]=yum
osInfo[/etc/arch-release]=pacman
osInfo[/etc/gentoo-release]=emerge
osInfo[/etc/SuSE-release]=zypp
osInfo[/etc/debian_version]=apt-get
osInfo[/etc/alpine-release]=apk
for f in ${!osInfo[@]}
do
if [[ -f $f ]];then
PACKAGE_MANAGER=${osInfo[$f]}
fi
done
sudo ${PACKAGE_MANAGER} install pass git -y
sudo ${PM} install pass git -y
# Check if GCM is installed
if [ -f "${HOME}/.git-credentials" ]; then
@ -95,7 +79,7 @@ echo GitHub URL: https://github.com/settings/ssh/new
echo Fixing permissions, removing temp files...
sudo chown -R $(whoami) /home/$(whoami)/.gnupg
sudo chgrp -R $(whoami) /home/$(whoami)/.gnupg
sudo chmod -R 700 /home/$(whoami)/.gnupg
sudo chmod -R 600 /home/$(whoami)/.gnupg
rm dotnet-install.sh
read -p "Done. Now verify your SSH and GPG keys in Git*" < /dev/tty