Skip to content

Commit

Permalink
Create dummy registration dates file when one doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
powe97 committed Oct 12, 2023
1 parent 12c1f9a commit 307b680
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/scripts/build_single.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ for directory in $(find src/store/data/semester_data/* -type d -print0 -maxdepth
if ! test -f "$CATALOG_FILE"; then
echo "{}" > "$CATALOG_FILE"
fi
REGISTRATION_DATES_FILE="$directory/registration_dates.json"
if ! test -f "$REGISTRATION_DATES_FILE"; then
printf '{\n "registration_closes": "1970-01-01",\n "registration_opens": "1970-01-01"\n}' > "$REGISTRATION_DATES_FILE"
fi
if test $ITER -ne 0; then
echo -n "," >>.env
fi
Expand Down

0 comments on commit 307b680

Please sign in to comment.