From 81e3d29aea23bb6171bb3a43474cce7c5dcb7d94 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 23 Apr 2018 23:40:07 +0200 Subject: [PATCH 1/1] axzshctl: Only rebuild cache when action succeeded --- bin/axzshctl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.2