From be5039decd05164b5b0a22afd32548ad2443b76c Mon Sep 17 00:00:00 2001 From: Daniel Prado Date: Sat, 16 Mar 2019 23:33:23 +0100 Subject: [PATCH] Fixed error while unlocking using complex passwords --- bwmenu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bwmenu b/bwmenu index 83e39fc..5f0b1a2 100755 --- a/bwmenu +++ b/bwmenu @@ -25,7 +25,7 @@ load_items() { source "$BW_HASH_FILE" if ! ITEMS=$(bw list items 2>/dev/null); then mpw=$(rofi -dmenu -p "Master Password" -password) || exit $? - bw unlock "$mpw" | grep -e 'export.*=="' -o > $BW_HASH_FILE || { + echo "$mpw" | bw unlock | grep -e 'export.*=="' -o > $BW_HASH_FILE || { exit_error 1 "Failed to unlock BitWarden. Please try again." }