Skip to content
Snippets Groups Projects
Commit de8e87c7 authored by Kid's avatar Kid
Browse files

Syntax fix

parent 9b9c0c86
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
......@@ -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() {
......
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment