aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kohlstedde <christian@kohlsted.de>2020-07-22 22:09:27 +0200
committerChristian Kohlstedde <christian@kohlsted.de>2020-07-22 22:09:27 +0200
commita201b04125a5b7b020b9d2010f8791cc810c33bb (patch)
tree212d3e41824184fcc49a70da6734262ad18ae2ea
parentb286cea65dd55a4f45aa10a068461b344e39911a (diff)
downloadrofi-pass-a201b04125a5b7b020b9d2010f8791cc810c33bb.tar.gz
Fix help with heredoc statement
-rwxr-xr-xrofi-pass19
1 files 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
}