From f84d5a5a4b8bb1a87a286a2a0f8ecd04e9436650 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 16 Dec 2016 18:36:59 -0500 Subject: [PATCH] shell/zsh/install: refactor conditionals --- shell/zsh/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/zsh/install b/shell/zsh/install index 56e59661..a1c4e132 100755 --- a/shell/zsh/install +++ b/shell/zsh/install @@ -11,9 +11,9 @@ if [[ "$SHELL" != *zsh ]]; then fi ;; linux*) - if [ -f /etc/arch-release ]; then + if [[ -f /etc/arch-release ]]; then sudo pacman --needed --noconfirm -S zsh - elif [ -f /etc/debian_version ]; then + elif [[ -f /etc/debian_version ]]; then sudo apt-get install -y zsh fi ;;