Fix minor bugs; better distro detection soon

This commit is contained in:
askiiart 2023-08-21 19:04:55 -05:00
parent 8256fa0c71
commit f8b7498a62
No known key found for this signature in database
GPG key ID: 85505F3A2264FA01
2 changed files with 4 additions and 4 deletions

View file

@ -20,11 +20,11 @@ osInfo[/etc/alpine-release]=apk
for f in ${!osInfo[@]} for f in ${!osInfo[@]}
do do
if [[ -f $f ]];then if [[ -f $f ]];then
echo Package manager: ${osInfo[$f]} PACKAGE_MANAGER=${osInfo[$f]}
fi fi
done done
sudo ${osInfo[$f]} install pass git -y sudo ${PACKAGE_MANAGER} install pass git -y
# Install git credential manager # Install git credential manager
curl -L https://aka.ms/gcm/linux-install-source.sh | sh curl -L https://aka.ms/gcm/linux-install-source.sh | sh

View file

@ -12,10 +12,10 @@ osInfo[/etc/alpine-release]=apk
for f in ${!osInfo[@]} for f in ${!osInfo[@]}
do do
if [[ -f $f ]];then if [[ -f $f ]];then
echo Package manager: ${osInfo[$f]} PACKAGE_MANAGER=${osInfo[$f]}
fi fi
done done
sudo ${osInfo[$f]} install zsh -y sudo ${PACKAGE_MANAGER} install zsh -y
cp -r zsh-files/* ~/ cp -r zsh-files/* ~/