From 824de51af058e5881eadd17966046e79fdeb82bb Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Sat, 16 Sep 2023 01:56:17 -0500 Subject: [PATCH] Update postToMap.sh: minor updates --- scripts/postToMap.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/postToMap.sh b/scripts/postToMap.sh index b21748fa0..17d8c6da7 100755 --- a/scripts/postToMap.sh +++ b/scripts/postToMap.sh @@ -16,8 +16,8 @@ source "${ALLSKY_SCRIPTS}/functions.sh" || exit "${ALLSKY_ERROR_STOP}" function usage_and_exit() { - RET_CODE=${1} - [[ ${RET_CODE} -ne 0 ]] && echo -en "${wERROR}" + RET=${1} + [[ ${RET} -ne 0 ]] && echo -en "${wERROR}" echo echo -e "Usage: ${ME} [--help] [--whisper] [--delete] [--force] [--debug] [--machineid id] [--endofnight]" echo @@ -28,8 +28,8 @@ function usage_and_exit() echo "--debug: Output debugging statements." echo "--endofnight: Indicates how ${ME} was invoked." echo - [[ ${RET_CODE} -ne 0 ]] && echo -e "${wNC}" - exit "${RET_CODE}" + [[ ${RET} -ne 0 ]] && echo -e "${wNC}" + exit "${RET}" } function get_domain() @@ -403,4 +403,4 @@ elif [[ ( ${ON_TTY} == "true" || ${ALLSKY_DEBUG_LEVEL} -ge 4) && ${ENDOFNIGHT} = echo "${ME}: Week day doesn't match Machine ID ending - don't upload." fi -exit ${RETURN_CODE} +exit "${RETURN_CODE}"