From b665aeb521c7a47cd6160b3403698e66aeb7eafd Mon Sep 17 00:00:00 2001 From: He4eT Date: Wed, 25 Mar 2026 19:22:26 +0100 Subject: [PATCH] TOTP: handle empty string --- bwc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bwc b/bwc index ce5e626..a3bfd99 100755 --- a/bwc +++ b/bwc @@ -35,7 +35,7 @@ process_item () { echo "Password copied to clipboard." local totp=$(jq -r ".login.totp" <<< $login) - if [[ $totp != "null" ]]; then + if [[ $totp != "" && $totp != "null" ]]; then read -s -k $'?Press any key to copy the TOTP Token...\n' bw get totp $id --session $sessionkey | xclip -sel clip echo "Token copied to clipboard."