10 lines
172 B
Text
10 lines
172 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
# TODO: check for pass
|
||
|
|
||
|
key="$1"; shift
|
||
|
args=("$@")
|
||
|
|
||
|
otp="$(pass "$key" | grep -Pi '^otp.*: ?.*$' | cut -d ':' -f 2 | sed 's/ //g')"
|
||
|
simple-otp "$otp"
|