mirror of
https://github.com/tadfisher/pass-otp.git
synced 2025-12-12 20:35:50 +01:00
Do not fail when otptool is installed but oathtool is not installed
Fixes: commit 0aadd4c82c
This commit is contained in:
2
otp.bash
2
otp.bash
@@ -329,7 +329,7 @@ cmd_otp_append() {
|
||||
}
|
||||
|
||||
cmd_otp_code() {
|
||||
[[ -z "$OATH" ]] && die "Failed to generate OTP code: oathtool is not installed."
|
||||
[[ -z "$OATH" && -z "$OTPTOOL" ]] && die "Failed to generate OTP code: oathtool or otptool is not installed."
|
||||
|
||||
local opts clip=0 quiet=0
|
||||
opts="$($GETOPT -o cq -l clip,quiet -n "$PROGRAM" -- "$@")"
|
||||
|
||||
Reference in New Issue
Block a user