forked from CS196Illinois/spring-2018-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlecture.sh
More file actions
executable file
·21 lines (20 loc) · 736 Bytes
/
Copy pathlecture.sh
File metadata and controls
executable file
·21 lines (20 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if [[ $1 = --help ]]
then
echo "---------------------------"
echo "- 196 lecture signins -"
echo "- @duke vijitbenjaronk -"
echo "---------------------------\n"
echo "./lecture.sh open-session opens a new lecture session"
echo "./lecture.sh close-session closes the current lecture session"
echo "./lecture.sh --help opens the current help dialog"
echo "./lecture.sh backup updates the server backup"
elif [[ $1 = open-session ]]
then
curl http://cs196.cs.illinois.edu/opensession
elif [[ $1 = close-session ]]
then
curl http://cs196.cs.illinois.edu/closesession
elif [[ $1 = backup ]]
then
curl http://cs196.cs.illinois.edu/backup
fi