From 4f5ed2ab1256af9b41a94091cdea5cf7c2eaa341 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Sat, 29 Oct 2022 07:46:42 +0200 Subject: Don't echo message on BYE Fixes: bin/anypinentry: 165: printf: printf: I/O error --- anypinentry | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anypinentry b/anypinentry index f0274cc..6eab83e 100755 --- a/anypinentry +++ b/anypinentry @@ -157,7 +157,7 @@ interpret_command() { NOP) ;; CANCEL) not_implemented_error ;; OPTION) save_option "$data" ;; - BYE) echo "OK closing connection"; exit 0 ;; + BYE) exit 0 ;; AUTH) not_implemented_error ;; RESET) reset ;; END) not_implemented_error ;; -- cgit v1.3.1 From 887662597b9a5db113303bfc13121fcffa446190 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Sat, 29 Oct 2022 07:48:35 +0200 Subject: Use case insensitive variable in get_info() --- anypinentry | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anypinentry b/anypinentry index 6eab83e..438259c 100755 --- a/anypinentry +++ b/anypinentry @@ -66,7 +66,7 @@ save_option() { get_info() { arg=$(echo "$1" | tr a-z A-Z) - case "$1" in + case "$arg" in VERSION) echo "D $VERSION" && echo "OK" ;; PID) echo "D $$" && echo "OK" ;; *) com_error ;; -- cgit v1.3.1