From a201b04125a5b7b020b9d2010f8791cc810c33bb Mon Sep 17 00:00:00 2001 From: Christian Kohlstedde Date: Wed, 22 Jul 2020 22:09:27 +0200 Subject: Fix help with heredoc statement --- rofi-pass | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/rofi-pass b/rofi-pass index 73364f5..21a14ee 100755 --- a/rofi-pass +++ b/rofi-pass @@ -472,7 +472,8 @@ clearUp () { } helpMenu () { - printf '%s' "${autotype}: Autotype + _rofi -dmenu -mesg "Hint: All hotkeys are configurable in config file" -p "Help > " <<- EOM + ${autotype}: Autotype ${type_user}: Type Username ${type_pass}: Type Password ${qrcode}: Generate and display qrcode @@ -490,14 +491,14 @@ helpMenu () { --- ${previous_root}: Switch to previous password store (--root) ${next_root}: Switch to next password store (--root) - " | _rofi -dmenu -mesg "Hint: All hotkeys are configurable in config file" -p "Help > " - help_val=$? - - if [[ $help_val -eq 1 ]]; then - exit; - else - unset helptext; mainMenu; - fi +EOM +help_val=$? + +if [[ $help_val -eq 1 ]]; then + exit; +else + unset helptext; mainMenu; +fi } -- cgit