diff options
author | Christian Kohlstedde <christian@kohlsted.de> | 2020-07-22 22:09:27 +0200 |
---|---|---|
committer | Christian Kohlstedde <christian@kohlsted.de> | 2020-07-22 22:09:27 +0200 |
commit | a201b04125a5b7b020b9d2010f8791cc810c33bb (patch) | |
tree | 212d3e41824184fcc49a70da6734262ad18ae2ea | |
parent | b286cea65dd55a4f45aa10a068461b344e39911a (diff) | |
download | rofi-pass-a201b04125a5b7b020b9d2010f8791cc810c33bb.tar.gz |
Fix help with heredoc statement
-rwxr-xr-x | rofi-pass | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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 } |