diff options
author | xPMo <PMo_@vivaldi.net> | 2018-09-10 06:52:16 +0000 |
---|---|---|
committer | Tad Fisher <tadfisher@gmail.com> | 2018-09-10 16:55:05 -0700 |
commit | 7125f4f31afe4695c16eb158094e2f28f48dd391 (patch) | |
tree | d3df7e51ff0c611821e8c1847d32740dea74d434 | |
parent | bffa7c7b2ef151c19bd89846cc545bf556b45c9a (diff) | |
download | pass-otp-7125f4f31afe4695c16eb158094e2f28f48dd391.tar.gz pass-otp-7125f4f31afe4695c16eb158094e2f28f48dd391.zip |
Fix getopt missed comma
pass-otp doesn't correctly read issuer, and will infinite loop on the `while true`
-rwxr-xr-x | otp.bash | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -242,7 +242,7 @@ cmd_otp_insert() { cmd_otp_append() { local opts force=0 echo=0 from_secret=0 - opts="$($GETOPT -o fesi:a: -l force,echo,secret,issuer:account: -n "$PROGRAM" -- "$@")" + opts="$($GETOPT -o fesi:a: -l force,echo,secret,issuer:,account: -n "$PROGRAM" -- "$@")" local err=$? eval set -- "$opts" while true; do case $1 in |