announce "Inspecting file $FILE"
+ if [[ " ${COLLEGE_CODES[@]} " =~ " $code " ]]; then
+ announce "Processing a college district code"
+ COLLEGE_FLAG="--college"
+ fi
+
# File format examples:
# 415.2016-03-18.csv
# 415.teacher.2016-03-18.csv
if [[ $LOCAL_FILE =~ ^[0-9a-z]{3}.[0-9]{4}-[0-9]{2}-[0-9]{2}.csv$ ]]; then
announce "Found a student file."
- if [[ " ${COLLEGE_CODES[@]} " =~ " $code " ]]; then
- announce "Processing a college student file"
- COLLEGE_FLAG="--college"
- fi
else
if [[ $LOCAL_FILE =~ ^[0-9a-z]{3}.teacher.[0-9]{4}-[0-9]{2}-[0-9]{2}.csv$ ]]; then
announce "Found a teacher file."