From e2e184c7d5c808f31fa6e7ff299ae277f33cf503 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 9 Jan 2024 09:30:59 +0000 Subject: [PATCH] Update manpage and completions. Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow. --- completions/bash/brew | 4 ++-- completions/zsh/_brew | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/completions/bash/brew b/completions/bash/brew index 8c50b4be3cf63..ab3c10eb11820 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -9,7 +9,7 @@ then fi __brewcomp_words_include() { - local element idx + local element idx for (( idx = 1; idx < COMP_CWORD; idx++ )) do element=${COMP_WORDS[idx]} @@ -75,7 +75,7 @@ __brew_complete_outdated_formulae() { __brew_complete_outdated_casks() { local cur="${COMP_WORDS[COMP_CWORD]}" local outdated_casks - outdated_casks="$(brew outdated --cask --quiet)" + outdated_casks="$(brew outdated --cask --quiet 2>/dev/null)" while read -r line; do COMPREPLY+=("${line}"); done < <(compgen -W "${outdated_casks}" -- "${cur}") } diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 9b2ea9ff206a6..42d396abdc58d 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -102,7 +102,7 @@ __brew_installed_casks() { local -a list local expl - list=( $(brew list --cask) ) + list=( $(brew list --cask 2>/dev/null) ) _wanted list expl 'installed casks' compadd -a list } @@ -110,7 +110,7 @@ __brew_outdated_casks() { [[ -prefix '-' ]] && return 0 local -a casks - casks=($(brew outdated --cask)) + casks=($(brew outdated --cask 2>/dev/null)) _describe -t casks 'outdated casks' casks }