Commit e2324d2f authored by Yandong Mao's avatar Yandong Mao

update

parent 798990c3
...@@ -15,6 +15,7 @@ LABS=" lab1 lab2a lab2b lab3a lab3b lab4a lab4b " ...@@ -15,6 +15,7 @@ LABS=" lab1 lab2a lab2b lab3a lab3b lab4a lab4b "
echo "Are you sure you want to submit $@? Enter 'yes' to continue:"; \ echo "Are you sure you want to submit $@? Enter 'yes' to continue:"; \
read line; \ read line; \
if test $$line != "yes" ; then echo "Giving up submission"; exit; fi; \ if test $$line != "yes" ; then echo "Giving up submission"; exit; fi; \
if test `du -b "$@-handin.tar.gz" | cut -f 1` -ge 20971520 ; then echo "File exceeds 20MB."; exit; fi; \
curl -F file=@$@-handin.tar.gz -F key=$(KEY) http://ydmao.scripts.mit.edu/6.824/handin.py/upload; \ curl -F file=@$@-handin.tar.gz -F key=$(KEY) http://ydmao.scripts.mit.edu/6.824/handin.py/upload; \
fi; \ fi; \
else \ else \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment