Skip to content

Commit 6cc0076

Browse files
committed
Fix key_wrapper calls with out CLEAR_SCREEN defined
1 parent f787457 commit 6cc0076

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

90zfsbootmenu/zfsbootmenu-lib.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,9 @@ load_key() {
904904
local encroot ret key keyformat keylocation
905905
encroot="${1}"
906906

907+
# Default to 0 when unset
908+
[ -n "${CLEAR_SCREEN}" ] || CLEAR_SCREEN=0
909+
907910
keylocation="$( zfs get -H -o value keylocation "${encroot}" )"
908911
if [ "${keylocation}" = "prompt" ]; then
909912
if [ "${CLEAR_SCREEN}" -eq 1 ] ; then

0 commit comments

Comments
 (0)