Skip to content

Commit

Permalink
Update makeChanges.sh: Pass --fromWebUI to postToMap.sh when appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Jan 4, 2025
1 parent 9207a25 commit e36ff18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/makeChanges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ while [[ $# -gt 0 ]]; do
shift
done

if [[ ${ON_TTY} == "false" ]]; then # called from WebUI.
if [[ ${ON_TTY} == "false" ]]; then
FROM_WEBUI="--fromWebUI"
# The WebUI will display our output in an
# appropriate style if ERROR: or WARNING: is in the message, so
# don't provide our own format.
Expand All @@ -84,6 +85,7 @@ if [[ ${ON_TTY} == "false" ]]; then # called from WebUI.
wNC=""
BR="<br>"
else
FROM_WEBUI=""
ERROR_PREFIX="${ME}: "
BR="\n"
fi
Expand Down Expand Up @@ -888,7 +890,7 @@ if [[ ${RUN_POSTTOMAP} == "true" ]]; then
[[ ${DEBUG} == "true" ]] && echo -e "${wDEBUG}Executing postToMap.sh${wNC}"
# TODO: put in background to return to user faster?
# shellcheck disable=SC2086
"${ALLSKY_SCRIPTS}/postToMap.sh" --whisper --force ${DEBUG_ARG} ${POSTTOMAP_ACTION}
"${ALLSKY_SCRIPTS}/postToMap.sh" --whisper --force ${DEBUG_ARG} ${FROM_WEBUI} ${POSTTOMAP_ACTION}
fi
fi

Expand Down

0 comments on commit e36ff18

Please sign in to comment.