Skip to content

Commit

Permalink
Update makeChanges.sh: use better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Aug 12, 2024
1 parent 4c6d1d0 commit a3d22ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/makeChanges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,12 @@ do

"latitude" | "longitude")
# Allow either +/- decimal numbers, OR numbers with N, S, E, W, but not both.
if NEW_VALUE="$( convertLatLong "${NEW_VALUE}" "${KEY}" 2>&1 )" ; then
check_website && WEBSITE_CONFIG+=(config."${KEY}" "${LABEL}" "${NEW_VALUE}")
if LAT_LON="$( convertLatLong "${NEW_VALUE}" "${KEY}" 2>&1 )" ; then
check_website && WEBSITE_CONFIG+=(config."${KEY}" "${LABEL}" "${LAT_LON}")
RUN_POSTTOMAP="true"
else
# Restore to old value
echo -en "${wERROR}ERROR: ${NEW_VALUE}${wNC}"
echo -en "${wERROR}${LAT_LON}${wNC}"
echo "${BR}Setting ${WSNs}${LABEL}${WSNe} back to ${WSVs}${OLD_VALUE}${WSVe}."
update_json_file ".${KEY}" "${OLD_VALUE}" "${SETTINGS_FILE}" "string"
OK="false"
Expand Down

0 comments on commit a3d22ac

Please sign in to comment.