Skip to content

Commit

Permalink
Update docker/main/ngen-calibration/entrypoint.sh
Browse files Browse the repository at this point in the history
Account for ".yml" and ".yaml" extensions when trying to find calibration config file, as well as ignore the case.

Co-authored-by: Austin Raney <austin.raney@noaa.gov>
  • Loading branch information
robertbartel and aaraney committed Aug 28, 2023
1 parent 846d585 commit 5b46b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/main/ngen-calibration/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ start_calibration() {
echo "$(print_date) Starting serial ngen calibration"

# Find and use copy of config in output dataset
CALIBRATION_CONFIG_FILE=$(find ${OUTPUT_DATASET_DIR} -name "*.yaml" -maxdepth 1 | head -1)
CALIBRATION_CONFIG_FILE=$(find ${OUTPUT_DATASET_DIR} -type f -iname "*.yaml" -o -iname "*.yml" -maxdepth 1 | head -1)

if [ -z "${CALIBRATION_CONFIG_FILE}" ]; then
echo "Error: NGEN calibration yaml file not found" 2>&1
Expand Down

0 comments on commit 5b46b8e

Please sign in to comment.