18 lines
No EOL
381 B
Bash
Executable file
18 lines
No EOL
381 B
Bash
Executable file
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
|
|
echo Package manager: ${osInfo[$f]}
|
|
fi
|
|
done
|
|
|
|
sudo ${osInfo[$f]} install zsh -y
|
|
|
|
cp -r zsh-files/* ~/ |