Skip to content

Commit

Permalink
zfsbootmenu-help: set trap earlier to fix cleanup on efifb
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Dec 9, 2023
1 parent 3b355a5 commit 978e35a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zfsbootmenu/libexec/zfsbootmenu-help
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ done

unset src sources

trap cleanup EXIT INT TERM

# zfsbootmenu-help invokes itself, so the value of $WIDTH depends
# on if $0 is launching fzf (-L) or is being launched inside
# fzf (-s).
Expand Down Expand Up @@ -113,7 +115,5 @@ while getopts "lL:s:" opt; do
esac
done

trap cleanup EXIT INT TERM

# No options detected, show the main help section
help_pager "main-screen"

0 comments on commit 978e35a

Please sign in to comment.