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