diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2024-01-18 19:38:42 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2024-01-18 19:38:42 +0100 |
commit | 343a2b5d4c564593402158d2e4dd35dedaf5599f (patch) | |
tree | c13c835905581f2bf8710bd12d08207a4565f882 | |
parent | 7a8f0eb47e73b85d99c962a40ebbbf877ee9ec87 (diff) | |
download | devtools-343a2b5d4c564593402158d2e4dd35dedaf5599f.tar.xz |
chore(search): correct typo in optional dependency bat
-rw-r--r-- | src/lib/search.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/search.sh b/src/lib/search.sh index 862af25..e737dfa 100644 --- a/src/lib/search.sh +++ b/src/lib/search.sh @@ -91,7 +91,7 @@ pkgctl_search() { local line_numbers=1 # variables - local bats_style="header,grid" + local bat_style="header,grid" local default_filter="-path:keys/pgp/*.asc" local graphql_lookup_batch=200 local output result query entries from until length @@ -156,14 +156,14 @@ pkgctl_search() { fi # check for optional dependencies - if [[ ${output_format} == pretty ]] && ! command -v bats &>/dev/null; then - warning "Failed to find optional dependency 'bats': falling back to plain output" + if [[ ${output_format} == pretty ]] && ! command -v bat &>/dev/null; then + warning "Failed to find optional dependency 'bat': falling back to plain output" output_format=plain fi # populate line numbers option if (( line_numbers )); then - bats_style="numbers,${bats_style}" + bat_style="numbers,${bat_style}" fi # call the gitlab search API @@ -282,7 +282,7 @@ pkgctl_search() { --line-range "${startline}:" \ --paging=never \ --force-colorization \ - --style "${bats_style}" \ + --style "${bat_style}" \ --map-syntax "PKGBUILD:Bourne Again Shell (bash)" \ --map-syntax ".SRCINFO:INI" \ --map-syntax "*install:Bourne Again Shell (bash)" \ |