aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-07-16 21:59:51 +0530
committerGitHub <noreply@github.com>2023-07-16 21:59:51 +0530
commit3302995faca21c4b003a517c4dae12ef8d7f7971 (patch)
tree992d56741c20527719bcd05da06de0216bc37b9b
parent1b958661c9081ac92f417ce44da7a55a76360db6 (diff)
parent887662597b9a5db113303bfc13121fcffa446190 (diff)
downloadanypinentry-3302995faca21c4b003a517c4dae12ef8d7f7971.tar.gz
anypinentry-3302995faca21c4b003a517c4dae12ef8d7f7971.zip
Merge pull request #5 from jspricke/service_fixes
Fix errors found in system journal
-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 ;;