Skip to content

Commit 63eb978

Browse files
authored
Update allsky.sh: Display msg if unknown reason lastchange didn't exist
1 parent e1f30bd commit 63eb978

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

allsky.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,17 @@ if [[ -z ${LAST_CHANGED} ]]; then
107107
WEBUI_MSG="Allsky needs to be configured"
108108

109109
else
110+
# I don't think we'll ever get here.
111+
MSG="ERROR: Unknown reason 'lastchanged' did not exist."
112+
WEBUI_MSG="${MSG}"
110113
IMAGE_NAME=""
111114
fi
112115
if [[ ${NEEDS_REBOOT} == "true" ]]; then
113116
MSG+=" The Pi also needs to be rebooted." >&2
114117
doExit "${EXIT_ERROR_STOP}" "${IMAGE_NAME}" \
115118
"" "${WEBUI_MSG} and then the Pi rebooted."
116119
else
117-
doExit "${EXIT_ERROR_STOP}" "${IMAGE}" "" "${WEBUI_MSG}."
120+
doExit "${EXIT_ERROR_STOP}" "${IMAGE_NAME}" "" "${WEBUI_MSG}."
118121
fi
119122
echo "*** ===== ${MSG}" >&2 # to the log
120123

0 commit comments

Comments
 (0)