diff options
author | Marc-Aurèle Brothier <m@brothier.org> | 2018-01-21 22:24:20 +0100 |
---|---|---|
committer | Tad Fisher <tadfisher@gmail.com> | 2018-01-21 13:24:20 -0800 |
commit | 7e54497f8889427cfaad5893b265309a7b60dfc7 (patch) | |
tree | b28b38a0e82dd15210cb650213a349df0aaa9198 | |
parent | b8009511b32a5d502148ad8a8397c9cfd7c75a40 (diff) | |
download | pass-otp-7e54497f8889427cfaad5893b265309a7b60dfc7.tar.gz pass-otp-7e54497f8889427cfaad5893b265309a7b60dfc7.zip |
Use a compatible to lowercase syntax for bash < 4 (#41)
-rwxr-xr-x | otp.bash | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -317,7 +317,7 @@ cmd_otp_code() { case "$otp_type" in totp) cmd="$OATH -b --totp" - [[ -n "$otp_algorithm" ]] && cmd+="=${otp_algorithm,,}" + [[ -n "$otp_algorithm" ]] && cmd+=$(echo "=${otp_algorithm}"|tr "[:upper:]" "[:lower:]") [[ -n "$otp_period" ]] && cmd+=" --time-step-size=$otp_period"s [[ -n "$otp_digits" ]] && cmd+=" --digits=$otp_digits" cmd+=" $otp_secret" |