Skip to content

Commit 4dfbab9

Browse files
committed
added ability to identify root of submission based on setup.sh location
1 parent d42f2fd commit 4dfbab9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

run_autograder

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
EXECUTABLE=./VMTranslator
44

5-
cp -r /autograder/submission/* /autograder/source/
5+
SUBMISSION_DIR=$(realpath $(dirname $(find /autograder/submission -name 'setup.sh' -type f)))
6+
echo "Identified ${SUBMISSION_DIR} as root of project."
7+
cp -r ${SUBMISSION_DIR}/* /autograder/source/
68

79
pushd /autograder/source/ >/dev/null
810

0 commit comments

Comments
 (0)