Skip to content

Commit

Permalink
Update makeChanges.sh: remove leading "_" from setting names
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Sep 18, 2023
1 parent 9cf524f commit b08d61f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/makeChanges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ do
if [[ ${DEBUG} == "true" ]]; then
MSG="${KEY}: Old=[${OLD_VALUE}], New=[${NEW_VALUE}]"
echo -e "${wDEBUG}${ME}: ${MSG}${wNC}"
if [[ ${ON_TTY} -eq 0 ]]; then # called from WebUI.
if [[ ${ON_TTY} == "false" ]]; then # called from WebUI.
echo -e "<script>console.log('${MSG}');</script>"
fi
fi

KEY="${KEY,,}" # convert to lowercase
KEY="${KEY/^_/}" # Remove any leading "_"

# Don't skip if it's cameratype since that indicates we need to refresh.
if [[ ${KEY} != "cameratype" && ${OLD_VALUE} == "${NEW_VALUE}" ]]; then
Expand All @@ -162,7 +163,7 @@ do
NEW_CAMERA_NUMBER="${NEW_VALUE}"
CAMERA_NUMBER=" -cameraNumber ${NEW_CAMERA_NUMBER}"
# Set NEW_VALUE to the current Camera Type
NEW_VALUE="$( settings .cameratype )"
NEW_VALUE="$( settings ".cameratype" )"

MSG="Re-creating files for cameraType ${NEW_VALUE}, cameraNumber ${NEW_CAMERA_NUMBER}"
if [[ ${ON_TTY} == "false" ]]; then # called from WebUI.
Expand Down

0 comments on commit b08d61f

Please sign in to comment.