Skip to content

Commit

Permalink
Update execute.sh: shellcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Dec 24, 2024
1 parent 78f91e8 commit e49ad8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/utilities/execute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function rm_msg()
else
echo "Unable to remove '${FILE}': ${R}" >&2
fi
return ${RET_CODE}
return "${RET_CODE}"
}

RET=0
Expand Down Expand Up @@ -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
;;
Expand All @@ -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}"

0 comments on commit e49ad8e

Please sign in to comment.