mirror of
https://github.com/He4eT/fuzzy-bitwarden-clipboard.git
synced 2026-05-04 23:07:22 +00:00
TOTP: handle empty string
This commit is contained in:
parent
6e48342412
commit
b665aeb521
1 changed files with 1 additions and 1 deletions
2
bwc
2
bwc
|
|
@ -35,7 +35,7 @@ process_item () {
|
||||||
echo "Password copied to clipboard."
|
echo "Password copied to clipboard."
|
||||||
|
|
||||||
local totp=$(jq -r ".login.totp" <<< $login)
|
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'
|
read -s -k $'?Press any key to copy the TOTP Token...\n'
|
||||||
bw get totp $id --session $sessionkey | xclip -sel clip
|
bw get totp $id --session $sessionkey | xclip -sel clip
|
||||||
echo "Token copied to clipboard."
|
echo "Token copied to clipboard."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue