Skip to content

Commit 1fa0ac5

Browse files
authored
Update makeChanges.sh: Look for .png and .jpg dark frames
Not just .${EXTENSION}
1 parent ae84d11 commit 1fa0ac5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/makeChanges.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -655,18 +655,18 @@ do
655655
"usedarkframes")
656656
if [[ ${NEW_VALUE} == "true" ]]; then
657657
if [[ ! -d ${ALLSKY_DARKS} ]]; then
658-
wW_ "WARNING: No darks to subtract. No '${ALLSKY_DARKS}' directory."
658+
wE_ "ERROR: The '${ALLSKY_DARKS}' directory does not exist so there are no darks to subtract."
659659
# Restore to old value
660660
echo "${wBR}Disabling ${WSNs}${LABEL}${WSNe}."
661661
update_json_file ".${KEY}" "${OLD_VALUE}" "${SETTINGS_FILE}" "boolean"
662662
(( NUM_CHANGED-- ))
663663
else
664-
NUM_DARKS=$( find "${ALLSKY_DARKS}" -name "*.${EXTENSION}" 2>/dev/null | wc -l)
664+
NUM_DARKS=$( find "${ALLSKY_DARKS}" \( -name "*.png" -o -name "*.jpg" \) 2>/dev/null | wc -l)
665665
if [[ ${NUM_DARKS} -eq 0 ]]; then
666666
W="WARNING: ${WSNs}${LABEL}${WSNe} is set but there are no darks"
667-
W+=" in '${ALLSKY_DARKS}' with extension of '${EXTENSION}'."
667+
W+=" frames in '${ALLSKY_DARKS}'."
668668
wW_ "${W}"
669-
echo "${wBR}FIX: Either disable the setting or take dark frames."
669+
echo "${wBR}FIX: Either disable the setting or take dark frames."
670670
fi
671671
fi
672672
fi

0 commit comments

Comments
 (0)