totp generation split out; no longer notifies if no TOTP present
This commit is contained in:
parent
c9f1593954
commit
364530fc31
3 changed files with 19 additions and 11 deletions
|
|
@ -18,9 +18,4 @@ $BWZY_TYPE_CMD \
|
|||
-s $next_sleep \
|
||||
-k return
|
||||
|
||||
# Copy the TOTP to clipboard
|
||||
if [[ -n "$TOTP" ]]; then
|
||||
echo -n "$TOTP" | cli-copy
|
||||
[[ -n "$BWZY_NOTIFY_CMD" ]] && $BWZY_NOTIFY_CMD "TOTP copied to clipboard"
|
||||
fi
|
||||
|
||||
$BWZY_TOTP_COPY <<<"$TOTP"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue