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 18, 2022
2 parents 2b785d8 + e971fd5 commit 0857609
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions rpi_data/automate-semesters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ spring() {
local year=${1}
source_url=https://sis.rpi.edu/reg/zfs20${year}01.htm

exitCode=$(python3 ./website_checker.py ${source_url})
if [ ${exitCode}==0 ]
python3 ./website_checker.py ${source_url}
exitCode=$?
if [ ${exitCode} == 0 ]
then
echo "Spring"
export SEMESTER="SPRING ${year}"
Expand All @@ -23,8 +24,9 @@ summer() {
source_url_b=https://sis.rpi.edu/reg/zfs20${year}0502.htm
source_url_c=https://sis.rpi.edu/reg/zfs20${year}0503.htm

exitCode=$(python3 ./website_checker.py ${source_url_a} ${source_url_b} ${source_url})
if [ ${exitCode}==0 ]
python3 ./website_checker.py ${source_url_a} ${source_url_b} ${source_url}
exitCode=$?
if [ ${exitCode} == 0 ]
then
echo "Summer"
export SEMESTER="SUMMER ${year}"
Expand All @@ -41,8 +43,10 @@ summer() {
fall() {
local year=${1}
source_url=https://sis.rpi.edu/reg/zfs20${year}09.htm
exitCode=$(python3 ./website_checker.py ${source_url})
if [ ${exitCode}==0 ]

python3 ./website_checker.py ${source_url}
exitCode=$?
if [ ${exitCode} == 0 ]
then
echo "Fall"
export SEMESTER="FALL ${year}"
Expand Down

0 comments on commit 0857609

Please sign in to comment.