#!/bin/sh
set -o noglob
set -o errexit
set -o nounset
IFS='
'
mkdir -p src/student
cd src/student
first_file=$(echo "$EXPECTED_FILES" | cut -d' ' -f1)
mkdir -p "$(dirname "$first_file")"
cat > "$first_file"
cd
# Run program
go build "./src/student/$EXERCISE"
./"${EXERCISE}" "$@"