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."