Skip to content

Commit

Permalink
For some reason tun_autograder.sh is used.
Browse files Browse the repository at this point in the history
fallback to `run_autograder.sh` if `run_autograder` is not found.
  • Loading branch information
ksimuk committed Sep 19, 2023
1 parent b5f6441 commit ca37951
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ func prepareSubmission() {
func execute() {
log.Println("Copy run_autograde")
_, err := copy("/autograder/source/run_autograder", "/autograder/run_autograder")
if (err != nil) && !errors.Is(err, os.ErrNotExist) {
_, err = copy("/autograder/source/run_autograder.sh", "/autograder/run_autograder")
}
check(err)
os.Chmod("/autograder/run_autograder", 0777)

Expand Down

0 comments on commit ca37951

Please sign in to comment.