aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xanypinentry4
1 files changed, 2 insertions, 2 deletions
diff --git a/anypinentry b/anypinentry
index f0274cc..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 ;;
@@ -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 ;;