From e49ad8e6b06731ca916d2fb9f16b1978663ea321 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Mon, 23 Dec 2024 22:17:41 -0600 Subject: [PATCH] Update execute.sh: shellcheck fixes --- scripts/utilities/execute.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/utilities/execute.sh b/scripts/utilities/execute.sh index f90f1c134..734e9d0b6 100755 --- a/scripts/utilities/execute.sh +++ b/scripts/utilities/execute.sh @@ -66,7 +66,7 @@ function rm_msg() else echo "Unable to remove '${FILE}': ${R}" >&2 fi - return ${RET_CODE} + return "${RET_CODE}" } RET=0 @@ -97,7 +97,7 @@ case "${CMD}" in "AM_NOT_SUPPORTED") # Not supported camera CT="$2" shift - "${ALLSKY_UTILITIES}/show_supported_cameras.sh" --${CT} + "${ALLSKY_UTILITIES}/show_supported_cameras.sh" "--${CT}" "${ALLSKY_SCRIPTS}/addMessage.sh" --id "${CMD}" --delete ;; @@ -113,9 +113,9 @@ case "${CMD}" in if [[ ${RET} -eq 0 ]]; then echo "Executed ${*}" else - echo "Unable to execute ${*}" + echo "Unable to execute ${*}" >^2 fi ;; esac -exit ${RET} +exit "${RET}"