]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Don't show title for "UpdatePluginCache" when called internally
authorAlexander Barton <alex@barton.de>
Sat, 15 Feb 2020 16:39:12 +0000 (17:39 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 15 Feb 2020 16:39:12 +0000 (17:39 +0100)
bin/axzshctl

index c051bfd64458eb095bc50f00b014e80b356f3e2b..af10fabd3c54f70a67ee6e100d7ce3db522b8f91 100755 (executable)
@@ -57,7 +57,7 @@ function Usage {
 function UpdatePluginCache {
        [[ -r "$AXZSH/cache" ]] || return 0
 
-       ax_msg - "Updating plugin cache ..."
+       [[ "$1" = "-v" ]] && ax_msg - "Updating plugin cache ..."
        rm -rf \
                $AXZSH/cache/zlogin.cache \
                $AXZSH/cache/zlogout.cache \
@@ -419,7 +419,7 @@ case "$cmd" in
                ;;
        "update-caches")
                [[ $# -eq 0 ]] || Usage
-               UpdatePluginCache
+               UpdatePluginCache -v
                ;;
        "--help")
                Usage