From b70b423aba99e953475d4933c8894bfb6e42d7ab Mon Sep 17 00:00:00 2001 From: AnHaechan Date: Sun, 27 Aug 2023 05:52:51 +0000 Subject: [PATCH] grading script small fix --- README.md | 11 ++++------- scripts/grade.sh | 9 +++++---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 0a28e14..60ac907 100644 --- a/README.md +++ b/README.md @@ -138,17 +138,14 @@ Make sure that you're capable of using the following development tools: - We'll announce **all** assignments before the semester begins. - Submit your solution to . - Read the documentation at . -- We provide grading scripts for each assignment. Before submission, you can check your grade with your machine. - - Grading scripts are located at `scripts/` directory. +- You can check your grade of each assignment by running the grading script. - You can run the grading script with the following command: ```bash - $ `scripts/grade.sh ` + $ ./scripts/grade.sh ``` - - For example, - - If you want to grade `assignment9`, run the following command: + - E.g. To grade `assignment09`, run the following command: ```bash - $ cd scripts - $ ./grade.sh 9 + $ ./scripts/grade.sh 9 ``` - You're **allowed** to use ChatGPT or other LLMs. Instead, you'll solve more problems than previous semesters. diff --git a/scripts/grade.sh b/scripts/grade.sh index e0d8be5..6ef01ba 100755 --- a/scripts/grade.sh +++ b/scripts/grade.sh @@ -19,9 +19,9 @@ echo "Running with $RUNNER..." if [ $# != 1 ] then echo "===============================" - echo "Invalid number. $# arguments given." - echo "Usage: ./grade.sh " - echo "Example: ./grade.sh 1" + echo "Invalid argument." + echo "Usage: './grade.sh '" + echo "Example: './grade.sh 1' to grade assignment01" exit 1 fi TEST_NAME=$(printf "TEST%02d" $1) @@ -103,7 +103,8 @@ case $TEST_NAME in ) ;; *) - echo_err "Invalid test name: $TEST_NAME" + echo_err "Invalid assignment number: $1" + echo_err "Assignment number should be within 1 to 12." exit 1 ;; esac