mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
Remove obsolete --skip-update from command-not-found handlers
This commit is contained in:
@@ -7,7 +7,7 @@ function fish_command_not_found
|
||||
set -l txt
|
||||
|
||||
if not contains -- "$cmd" "-h" "--help" "--usage" "-?"
|
||||
set txt (brew which-formula --skip-update --explain $cmd 2> /dev/null)
|
||||
set txt (brew which-formula --explain $cmd 2> /dev/null)
|
||||
end
|
||||
|
||||
if test -z "$txt"
|
||||
|
||||
@@ -37,7 +37,7 @@ homebrew_command_not_found_handle() {
|
||||
if [[ "${cmd}" != "-h" ]] && [[ "${cmd}" != "--help" ]] && [[ "${cmd}" != "--usage" ]] && [[ "${cmd}" != "-?" ]]
|
||||
then
|
||||
local txt
|
||||
txt="$(brew which-formula --skip-update --explain "${cmd}" 2>/dev/null)"
|
||||
txt="$(brew which-formula --explain "${cmd}" 2>/dev/null)"
|
||||
fi
|
||||
|
||||
if [[ -z "${txt}" ]]
|
||||
|
||||
Reference in New Issue
Block a user