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