Syntax fix
This commit is contained in:
parent
9b9c0c8626
commit
de8e87c7d0
@ -3,6 +3,8 @@
|
|||||||
#: List all locally installable casks including short names.
|
#: 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"
|
source "$HOMEBREW_LIBRARY/Homebrew/items.sh"
|
||||||
|
|
||||||
homebrew-casks() {
|
homebrew-casks() {
|
||||||
|
|||||||
@ -3,6 +3,8 @@
|
|||||||
#: List all locally installable formulae including short names.
|
#: 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"
|
source "$HOMEBREW_LIBRARY/Homebrew/items.sh"
|
||||||
|
|
||||||
homebrew-formulae() {
|
homebrew-formulae() {
|
||||||
|
|||||||
@ -14,7 +14,7 @@ homebrew-items() {
|
|||||||
items="$( \
|
items="$( \
|
||||||
find "$HOMEBREW_REPOSITORY/Library/Taps" \
|
find "$HOMEBREW_REPOSITORY/Library/Taps" \
|
||||||
-type d \( \
|
-type d \( \
|
||||||
-name $find_filter -o \
|
-name "$find_filter" -o \
|
||||||
-name cmd -o \
|
-name cmd -o \
|
||||||
-name .github -o \
|
-name .github -o \
|
||||||
-name lib -o \
|
-name lib -o \
|
||||||
@ -25,11 +25,11 @@ homebrew-items() {
|
|||||||
sed "$sed_extended_regex_flag" \
|
sed "$sed_extended_regex_flag" \
|
||||||
-e 's/\.rb//g' \
|
-e 's/\.rb//g' \
|
||||||
-e 's_.*/Taps/(.*)/(home|linux)brew-_\1/_' \
|
-e 's_.*/Taps/(.*)/(home|linux)brew-_\1/_' \
|
||||||
-e $sed_filter \
|
-e "$sed_filter" \
|
||||||
)"
|
)"
|
||||||
local shortnames
|
local shortnames
|
||||||
shortnames="$(echo "$items" | cut -d "/" -f 3)"
|
shortnames="$(echo "$items" | cut -d "/" -f 3)"
|
||||||
echo -e "$items\n$shortnames" | \
|
echo -e "$items\n$shortnames" | \
|
||||||
grep -v $grep_filter | \
|
grep -v "$grep_filter" | \
|
||||||
sort -uf
|
sort -uf
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user