File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments