[PATCH 6/6] Small fix to `cmd_show()` getopt usage.

Doron Behar doron.behar at gmail.com
Wed Feb 7 20:39:59 CET 2018


---
 src/password-store.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/password-store.sh b/src/password-store.sh
index 31a0eb8..de46e85 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -372,7 +372,7 @@ cmd_show() {
 	while true; do case $1 in
 		-q|--qrcode) qrcode=1; selected_line="${2:-1}"; shift 2 ;;
 		-c|--clip) clip=1; selected_line="${2:-1}"; shift 2 ;;
-		-C|--next-clip) nextclip=1; selected_line="${2:-1}"; shift ;;
+		-C|--next-clip) nextclip=1; selected_line="${2:-1}"; shift 2;;
 		--) shift; break ;;
 	esac done
 
-- 
2.16.1



More information about the Password-Store mailing list