diff options
author | Paho Lurie-Gregg <paho@paholg.com> | 2020-09-06 02:16:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 11:16:34 +0200 |
commit | 1a6d6b8acee1537e6cf48dbc5b32dacba06e8ef3 (patch) | |
tree | 77ed37b17eb052120a7109f9ef3b356056005750 /tests/modules | |
parent | f14662089757959e726ad2713c9420784cb71911 (diff) |
zplug: Reduce noise (#1441)
Running `zplug install` will always product output, even if there is
nothing to do.
Gating it behind a `zplug check` eliminates that output when there is
nothing to do, and is recommended in the zplug README.
Diffstat (limited to 'tests/modules')
-rw-r--r-- | tests/modules/programs/zplug/modules.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/modules/programs/zplug/modules.nix b/tests/modules/programs/zplug/modules.nix index 8ebf82b861f..704c5c5e2ef 100644 --- a/tests/modules/programs/zplug/modules.nix +++ b/tests/modules/programs/zplug/modules.nix @@ -38,8 +38,10 @@ with lib; assertFileContains home-files/.zshrc \ 'zplug "lib/clipboard", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"' - assertFileRegex home-files/.zshrc \ - '^zplug install$' + assertFileContains home-files/.zshrc \ + 'if ! zplug check; then + zplug install + fi' assertFileRegex home-files/.zshrc \ '^zplug load$' |