From 7125f4f31afe4695c16eb158094e2f28f48dd391 Mon Sep 17 00:00:00 2001 From: xPMo Date: Mon, 10 Sep 2018 06:52:16 +0000 Subject: Fix getopt missed comma pass-otp doesn't correctly read issuer, and will infinite loop on the `while true` --- otp.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'otp.bash') 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 -- cgit v1.2.3