From cf190074233f3c122f76fa466c2ba060acf75804 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 26 Feb 2016 00:11:48 -0500 Subject: [PATCH] Update update.sh --- scripts/update.zsh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/update.zsh b/scripts/update.zsh index 31443070..b244b974 100755 --- a/scripts/update.zsh +++ b/scripts/update.zsh @@ -14,7 +14,7 @@ up-to-date() { { brew update; brew upgrade --all; brew cleanup } | indent } -[[ -f "$HOME/.emacs.d/Makefile" ]] && { +[ -f "$HOME/.emacs.d/Makefile" ] && { echo -n "Updating emacs" cd "$HOME/.emacs.d" && make update | indent } @@ -22,11 +22,10 @@ up-to-date() { local env=(rb py) for i in $env do - [[ -d "$HOME/.${i}env" ]] && { + [ -d "$HOME/.${i}env" ] && { echo "Updating ${i}env" { git pull > /dev/null - { for plugin in "$HOME"/.${i}env/plugins/* do @@ -39,10 +38,10 @@ do } done -[[ -d ~/.zsh/zgen ]] && { +[ -d ~/.zsh/zgen ] && { echo "Updating zgen" { - source "$HOME/.zsh/zgen/zgen.zsh" + source "$HOME/.zgen/zgen.zsh" zgen selfupdate zgen update } 2>&1 | indent