From: Alexander Barton Date: Mon, 23 Apr 2018 21:40:07 +0000 (+0200) Subject: axzshctl: Only rebuild cache when action succeeded X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ax-zsh.git;a=commitdiff_plain;h=81e3d29aea23bb6171bb3a43474cce7c5dcb7d94;hp=c7c14af2ac2d0fa4c21150d86af01bf8a3757d59 axzshctl: Only rebuild cache when action succeeded --- diff --git a/bin/axzshctl b/bin/axzshctl index a75ebb3..62121d8 100755 --- a/bin/axzshctl +++ b/bin/axzshctl @@ -377,8 +377,7 @@ case "$cmd" in ;; "enable-default-plugins") [[ $# -eq 0 ]] || Usage - EnableDefaultPlugins - UpdatePluginCache + EnableDefaultPlugins && UpdatePluginCache ;; "check-plugins") [[ $# -eq 0 ]] || Usage @@ -386,8 +385,7 @@ case "$cmd" in ;; "set-theme") [[ $# -eq 1 ]] || Usage - SetTheme "$1" - UpdatePluginCache + SetTheme "$1" && UpdatePluginCache ;; "upgrade") [[ $# -eq 0 ]] || Usage