diff --git a/Library/Homebrew/cmd/casks.sh b/Library/Homebrew/cmd/casks.sh index 4a8d866f45..5aa207879b 100644 --- a/Library/Homebrew/cmd/casks.sh +++ b/Library/Homebrew/cmd/casks.sh @@ -3,6 +3,8 @@ #: List all locally installable casks including short names. #: +# Don't need shellcheck to follow the `source`. +# shellcheck disable=SC1090 source "$HOMEBREW_LIBRARY/Homebrew/items.sh" homebrew-casks() { diff --git a/Library/Homebrew/cmd/formulae.sh b/Library/Homebrew/cmd/formulae.sh index eee27c9629..a9deabfcfc 100644 --- a/Library/Homebrew/cmd/formulae.sh +++ b/Library/Homebrew/cmd/formulae.sh @@ -3,6 +3,8 @@ #: List all locally installable formulae including short names. #: +# Don't need shellcheck to follow the `source`. +# shellcheck disable=SC1090 source "$HOMEBREW_LIBRARY/Homebrew/items.sh" homebrew-formulae() { diff --git a/Library/Homebrew/items.sh b/Library/Homebrew/items.sh index 6edf44dfc6..5792a742dc 100644 --- a/Library/Homebrew/items.sh +++ b/Library/Homebrew/items.sh @@ -14,7 +14,7 @@ homebrew-items() { items="$( \ find "$HOMEBREW_REPOSITORY/Library/Taps" \ -type d \( \ - -name $find_filter -o \ + -name "$find_filter" -o \ -name cmd -o \ -name .github -o \ -name lib -o \ @@ -25,11 +25,11 @@ homebrew-items() { sed "$sed_extended_regex_flag" \ -e 's/\.rb//g' \ -e 's_.*/Taps/(.*)/(home|linux)brew-_\1/_' \ - -e $sed_filter \ + -e "$sed_filter" \ )" local shortnames shortnames="$(echo "$items" | cut -d "/" -f 3)" echo -e "$items\n$shortnames" | \ - grep -v $grep_filter | \ + grep -v "$grep_filter" | \ sort -uf }