shell/zsh/install: refactor conditionals

This commit is contained in:
Henrik Lissner 2016-12-16 18:36:59 -05:00
parent ca5d9d3642
commit f84d5a5a4b

View file

@ -11,9 +11,9 @@ if [[ "$SHELL" != *zsh ]]; then
fi fi
;; ;;
linux*) linux*)
if [ -f /etc/arch-release ]; then if [[ -f /etc/arch-release ]]; then
sudo pacman --needed --noconfirm -S zsh sudo pacman --needed --noconfirm -S zsh
elif [ -f /etc/debian_version ]; then elif [[ -f /etc/debian_version ]]; then
sudo apt-get install -y zsh sudo apt-get install -y zsh
fi fi
;; ;;