From b0d81f4f0e14f1861fdc3a45e69be580dc1e4fb7 Mon Sep 17 00:00:00 2001 From: askiiart Date: Wed, 23 Aug 2023 21:26:13 -0500 Subject: [PATCH] Minor updates --- daily-use-pcs/fedora/setup-git.bash | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/daily-use-pcs/fedora/setup-git.bash b/daily-use-pcs/fedora/setup-git.bash index 0a28406..8c5e8cb 100755 --- a/daily-use-pcs/fedora/setup-git.bash +++ b/daily-use-pcs/fedora/setup-git.bash @@ -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 \ No newline at end of file