Skip to content

Commit

Permalink
zfsbootmenu-help: use cat in place of less
Browse files Browse the repository at this point in the history
less-633, when invoked under fzf as a preview helper, does not render any
text. The previously known-good version of less was 608. Advanced
functionality such as searching or paging is not needed or even
functional in fzf.

GNU cat and Busybox cat preserve embedded ansi color styling.
  • Loading branch information
zdykstra committed Oct 13, 2023
1 parent 22af458 commit 6528649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions zfsbootmenu/install-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ zfsbootmenu_essential_binaries=(
"dmesg"
"fzf"
"setsid"
"cat"
)

# shellcheck disable=SC2034
Expand Down
2 changes: 1 addition & 1 deletion zfsbootmenu/libexec/zfsbootmenu-help
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ while getopts "lL:s:" opt; do
exit
;;
s)
less -f -n -r "${OPTARG}"
cat "${OPTARG}"
exit
;;
?)
Expand Down

0 comments on commit 6528649

Please sign in to comment.