diff options
Diffstat (limited to 'bin/gauth')
| -rwxr-xr-x | bin/gauth | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,8 +2,9 @@ # Use backup from andOTP #cat ~/otp_accounts.json | +[ "$1" ] && post="grep -i $1" || post=cat gpg -qd ~/.otp.gpg | jq -r '.[] | "\(.label) \(.secret) \(.issuer)"' | while read -r l s i; do printf "%-32s %-10s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")" -done +done | $post |
