From c15757f3b33c55ee8392b75c77e0b9cee545c56a Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 2 Jul 2020 15:10:59 -0400 Subject: [PATCH] Fixed reported error when nothing new to install. Running: zplug install with no new installs returns an exitcode of 1. So running zplug install ; report "message" will always report a failure if there was no new resources to install. There doesn't seem to an actual way to tell if the install failed besides checking the log zplug produces, but that can be kind of messy. For the time being I'm going to disable reporting on this. --- zsh/makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zsh/makefile b/zsh/makefile index 203bd2b..62b4bdb 100644 --- a/zsh/makefile +++ b/zsh/makefile @@ -35,14 +35,13 @@ update: source $(ZPLUG_DIR)/init.zsh source $(ZSH_DIR)/zplug export zplugs - zplug install \ - ; $(report) "zplug install" + zplug install zplug update \ ; $(report) "zplug upate" zplug clean \ ; $(report) "zplug cleaned" else - $(report) error "$(ZPLUG_DIR) doesn't exist... maybe run init first?" + $(report) error "$(ZPLUG_DIR) doesn't exist - run init first." fi remove: