ERR -> LJ_ERR

This commit is contained in:
Darren 'Tadgy' Austin 2018-04-20 03:11:34 +01:00
commit 8deb4e6d4e

View file

@ -10,6 +10,7 @@
LJ_NAME="${0##*/}" LJ_NAME="${0##*/}"
LJ_VERSION="0.1.4" LJ_VERSION="0.1.4"
die() { die() {
# $1 The text of the error message to display on stderr. # $1 The text of the error message to display on stderr.
printf "%s: %s\n" "$LJ_NAME" "$1" >&2 printf "%s: %s\n" "$LJ_NAME" "$1" >&2
@ -346,7 +347,7 @@ while :; do
LJ_TIMED_OUT=1 LJ_TIMED_OUT=1
elif (( LJ_ERR != 0 )); then elif (( LJ_ERR != 0 )); then
# Unhandled error - sleep for a second and try again. # 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 sleep 1
continue continue
fi fi