Fix minor bugs; better distro detection soon
This commit is contained in:
parent
8256fa0c71
commit
f8b7498a62
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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/* ~/
|
Loading…
Reference in a new issue