Skip to content

Commit cfd9b75

Browse files
committed
jj-fzf: require 'gawk' as GNU awk binary
Signed-off-by: Tim Janik <timj@gnu.org>
1 parent c897ed4 commit cfd9b75

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The available hotkeys are displayed onscreen for simple discoverability.
2121
The commands and key bindings can also be displayed with `jj-fzf --help` and are documented in the wiki: [jj-fzf-help](https://github.com/tim-janik/jj-fzf/wiki/jj-fzf-help)
2222

2323
The `jj-fzf` script is implemented in bash-5.1, using fzf-0.29 and jj-0.23.0.
24-
Command line tools like sed, grep are assumed to provide GNU tool semantics.
24+
Command line tools like sed, grep, gawk are assumed to provide GNU tool semantics.
2525

2626
<!-- USAGE -->
2727
## Usage

jj-fzf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ fi
5050

5151
# == Check Deps ==
5252
VERSION=0.23.0
53-
jj --version --ignore-working-copy | grep -Eq 'jj 0\.2[3-9]\.' || die 'jj-0.23 is required'
54-
fzf --help | grep -Fq ' --header-first' || die 'fzf-0.29 is required'
55-
awk --version | grep -Fq 'GNU Awk' || die 'GNU Awk is required'
53+
jj --version --ignore-working-copy | grep -Eq 'jj 0\.2[3-9]\.' || die "failed to find 'jj' version 0.23 in \$PATH"
54+
fzf --help | grep -Fq ' --header-first' || die "failed to find 'fzf' version 0.29 in \$PATH"
5655
sed --version | grep -Fq 'GNU sed' &&
5756
gsed() { sed "$@"; } && export -f gsed ||
5857
gsed --version | grep -Fq 'GNU sed' || die "failed to find 'gsed' in \$PATH (GNU sed)"
58+
gawk --version | grep -Fq 'GNU Awk' || die "failed to find 'gawk' in \$PATH (GNU Awk)"
5959
TRACK=--track && FZFHELP="$(fzf --help 2>&1)" && [[ "$FZFHELP" =~ "--track" ]] || TRACK=
6060

6161
# == Early Options ==

0 commit comments

Comments
 (0)