10 lines
172 B
Bash
Executable file
10 lines
172 B
Bash
Executable file
#!/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"
|