From ed58ea298e72ec328952aec42b36368d6fbef568 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 15 Nov 2016 15:51:42 +0100 Subject: [PATCH] editor/emacs/install: refactor --- editor/emacs/install | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/editor/emacs/install b/editor/emacs/install index 56b297c0..5148b23d 100755 --- a/editor/emacs/install +++ b/editor/emacs/install @@ -7,20 +7,18 @@ case "$OSTYPE" in brew install emacs-mac --with-imagemagick --with-modern-icon --HEAD ;; linux*) - if [ -f /etc/arch-release ]; then + if [[ -f /etc/arch-release ]]; then sudo pacman --noconfirm -S make emacs python2 - elif [ -f /etc/debian_version ]; then + elif [[ -f /etc/debian_version ]]; then sudo apt-get install make emacs python fi - if [ ! -d ~/.cask ] - then + if [[ ! -d ~/.cask ]]; then curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python fi esac -if [ ! -d "$HOME/.emacs.d" ]; -then +if [[ ! -d "$HOME/.emacs.d" ]]; then git clone --recursive "hlissner/.emacs.d" "$HOME/.emacs.d" cd "$HOME/.emacs.d" make install