Skip to content

Commit

Permalink
Revert "Fixed error #1"
Browse files Browse the repository at this point in the history
This reverts commit 915c056.
  • Loading branch information
jaw12346 authored and RichtXO committed May 12, 2022
1 parent bb54287 commit ab25663
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 @@ -17,9 +17,9 @@ summer() {
source_url_a=https://sis.rpi.edu/reg/zfs${year}05.htm
source_url_b=https://sis.rpi.edu/reg/zfs${year}0502.htm
source_url_c=https://sis.rpi.edu/reg/zfs${year}0503.htm
if !( grep -q [[ ! curl -s --head --request GET ${source_url_a} | "404 Not Found" > /dev/null ]]
&& [[ ! curl -s --head --request GET ${source_url_b} | "404 Not Found" > /dev/null ]]
&& [[ ! curl -s --head --request GET ${source_url_c} | "404 Not Found" > /dev/null ]]
if !([[ ! curl -s --head --request GET ${source_url_a} | grep "404 Not Found" > /dev/null ]]
&& [[ ! curl -s --head --request GET ${source_url_b} | grep "404 Not Found" > /dev/null ]]
&& [[ ! curl -s --head --request GET ${source_url_c} | grep "404 Not Found" > /dev/null ]]
)
then
export SEMESTER="SUMMER ${year}"
Expand Down

0 comments on commit ab25663

Please sign in to comment.