From 6b5511d45b7ffbffd7bdb1bee5591391485e9e3a Mon Sep 17 00:00:00 2001 From: Benjamin Adovasio Date: Mon, 9 Feb 2026 12:11:27 -0500 Subject: [PATCH] fixed grade.sh to no repeat students --- Lab 1 - Group Work/grade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lab 1 - Group Work/grade.sh b/Lab 1 - Group Work/grade.sh index 15abb00..7c82936 100755 --- a/Lab 1 - Group Work/grade.sh +++ b/Lab 1 - Group Work/grade.sh @@ -37,7 +37,7 @@ for student_dir in "$AUTOGRADE_DIR"/*; do [ "$id" = "GRADING" ] && continue [ "$id" = "__MACOSX" ] && continue - pyfile="$(ls "$student_dir"/*.py 2>/dev/null | head -n 1)" + pyfile="$(ls "$student_dir"/*.py 2>/dev/null | grep -v '^.*/__graded_' | head -n 1)" [ -n "$pyfile" ] || continue outfile="$AUTOGRADE_DIR/dcs211_lab1_${id}.txt"