Skip to content

Commit

Permalink
jj-fzf: depend on jj-0.24.0
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Dec 4, 2024
1 parent 709bbaa commit 363ef8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jj-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ gawk --version | grep -Fq 'GNU Awk' || die "failed to find 'gawk' in \$PATH (GNU
version0d() { gawk 'BEGIN{FPAT="[0-9]+"} {printf("%04d.%04d.%04d.%04d.%04d\n",$1,$2,$3,$4,$5);exit}' <<<" $* "; }
versionge() { test "$(version0d "$2")a" '<' "$(version0d "$1")b"; }
versionge "$(bash --version)" 5.1.16 || die "failed to find 'bash' version 5.1.16 in \$PATH"
versionge "$(jj --version --ignore-working-copy)" 0.23 || die "failed to find 'jj' version 0.23.0 in \$PATH"
versionge "$(jj --version --ignore-working-copy)" 0.24 || die "failed to find 'jj' version 0.24.0 in \$PATH"
versionge "$(fzf --version)" 0.43 || die "failed to find 'fzf' version 0.43.0 in \$PATH" # 0.43.0 supports offset-up
sed --version 2>/dev/null | grep -Fq 'GNU sed' && gsed() { sed "$@"; } && export -f gsed ||
gsed --version | grep -Fq 'GNU sed' || die "failed to find 'gsed' in \$PATH (GNU sed)"
Expand Down

0 comments on commit 363ef8b

Please sign in to comment.