Last change
on this file since 13 was 11, checked in by koizumi.aoi, 3 years ago |
Moved addons to their own directory. Add kanako_gen, Removed
kanako-init, etc.
Signed-off-by: Aoi K <koizumi.aoi@…>
|
-
Property svn:executable
set to
on
|
File size:
308 bytes
|
Rev | Line | |
---|
[11] | 1 | #!/bin/sh -e
|
---|
| 2 | # extracted from https://rgz.ee/bin/pass
|
---|
| 3 |
|
---|
| 4 | totp_seed="$(kanako -v "$@" | grep 'totp: ' | head -n1 | cut -d' ' -f2)"
|
---|
| 5 | if ! [ -z "$totp_seed" ]; then
|
---|
| 6 | if command -v oathtool >/dev/null 2>&1; then
|
---|
| 7 | oathtool --totp -b "$totp_seed"
|
---|
| 8 | else
|
---|
| 9 | echo 'oathtool(1) should be installed'
|
---|
| 10 | exit 1
|
---|
| 11 | fi
|
---|
| 12 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.