Skip to content

Commit

Permalink
Merge branch '#520-Automate-course-updates-across-semesters' of https…
Browse files Browse the repository at this point in the history
…://github.com/YACS-RCOS/yacs.n into #520-Automate-course-updates-across-semesters
  • Loading branch information
pyalla26 committed Feb 25, 2022
2 parents 98b08e1 + adaca28 commit e6e7fb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpi_data/automate-semesters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ fall() {

MONTH=$(date +%m)
YEAR=$(date +%y)
if [[ ${MONTH} -ge 1 && ${MONTH} -le 5 ]]
if [[ ${MONTH} -ge 1 && ${MONTH} -lt 5 ]]
then
spring ${YEAR}
summer ${YEAR}
fi

if [[ ${MONTH} -ge 5 && ${MONTH} -le 9 ]]
if [[ ${MONTH} -ge 5 && ${MONTH} -lt 9 ]]
then
summer ${YEAR}
fall ${YEAR}
fi

if [[ ${MONTH} -ge 9 || ${MONTH} -eq 1 ]]
if [[ ${MONTH} -ge 9 && ${MONTH} -le 12 ]]
then
fall ${YEAR}
spring ${YEAR}
Expand Down

0 comments on commit e6e7fb6

Please sign in to comment.