Skip to content

Commit

Permalink
Require fzf >= 0.27.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joehillen committed Sep 21, 2021
1 parent 4591797 commit a31f0a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.1] - 2021-09-21
### Fixed
- Require fzf >= 0.27.1

## [1.3.0] - 2021-09-20
### Added
- `cat` command
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ VERSION: 1.3.0

# Requirements

- [fzf](https://github.com/junegunn/fzf) >= [0.22.0](https://github.com/junegunn/fzf/blob/master/CHANGELOG.md#0220)
- [fzf](https://github.com/junegunn/fzf) >= [0.27.1](https://github.com/junegunn/fzf/blob/master/CHANGELOG.md#0244)
- bash > 4.3 (released 2009)
- awk

Expand Down
2 changes: 1 addition & 1 deletion README.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ VERSION: $(cat VERSION)
# Requirements
- [fzf](https://github.com/junegunn/fzf) >= [0.22.0](https://github.com/junegunn/fzf/blob/master/CHANGELOG.md#0220)
- [fzf](https://github.com/junegunn/fzf) >= [0.27.1](https://github.com/junegunn/fzf/blob/master/CHANGELOG.md#0244)
- bash > 4.3 (released 2009)
- awk
Expand Down
8 changes: 8 additions & 0 deletions sysz
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ _sysz_list_units() {

# main

# check fzf version
MIN_FZF=0.27.1
if [[ "$(printf '%s\n' "$MIN_FZF" "$(fzf --version | cut -d' ' -f1)" | sort -V | head -n1)" != "$MIN_FZF" ]]; then
echo "ERROR: fzf >= $MIN_FZF required" >&2
echo "https://github.com/junegunn/fzf#upgrading-fzf" >&2
exit 1
fi

# root doesn't have user units
if [[ $EUID -eq 0 ]]; then
MANAGERS=(system)
Expand Down

0 comments on commit a31f0a8

Please sign in to comment.