diff options
| author | Marc Vertes <mvertes@free.fr> | 2023-05-26 11:07:01 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2023-05-26 11:07:01 +0200 |
| commit | d56b6f65e8d895c1e8e7920a6aef6d2a06312589 (patch) | |
| tree | 14bfce2dd63b4488fb6f78d32f45f7dfc0b6fbec /bin | |
| parent | dae618ee1c8c8c80f6e6d0b1ee4fb1c503eb71e7 (diff) | |
update
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 |
