aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxPMo <PMo_@vivaldi.net>2018-09-10 06:52:16 +0000
committerTad Fisher <tadfisher@gmail.com>2018-09-10 16:55:05 -0700
commit7125f4f31afe4695c16eb158094e2f28f48dd391 (patch)
treed3df7e51ff0c611821e8c1847d32740dea74d434
parentbffa7c7b2ef151c19bd89846cc545bf556b45c9a (diff)
downloadpass-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-xotp.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/otp.bash b/otp.bash
index 382ec19..d4c7756 100755
--- a/otp.bash
+++ b/otp.bash
@@ -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