From 8deb4e6d4e6ed0f8eedd3a6c3faec82aaaba080a Mon Sep 17 00:00:00 2001 From: Darren Austin Date: Fri, 20 Apr 2018 03:11:34 +0100 Subject: [PATCH] ERR -> LJ_ERR --- lumberjack | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lumberjack b/lumberjack index 05fd730..a17f93a 100755 --- a/lumberjack +++ b/lumberjack @@ -10,6 +10,7 @@ LJ_NAME="${0##*/}" LJ_VERSION="0.1.4" + die() { # $1 The text of the error message to display on stderr. printf "%s: %s\n" "$LJ_NAME" "$1" >&2 @@ -346,7 +347,7 @@ while :; do LJ_TIMED_OUT=1 elif (( LJ_ERR != 0 )); then # Unhandled error - sleep for a second and try again. - syslog "error" "unhandled return code from 'read': $ERR" + syslog "error" "unhandled return code from 'read': $LJ_ERR" sleep 1 continue fi