fix(entrypoint): correct path to the exercise that is being tested

This commit is contained in:
lee 2023-08-11 16:04:25 +01:00 committed by LEEDASILVA
parent 93135cc76e
commit ccd119c098
2 changed files with 1 additions and 11 deletions

View File

@ -3,7 +3,7 @@
set -e
if test "$CODE_EDITOR_RUN_ONLY" = true; then
node "${EXERCISE}.js" "$@"
node "/jail/student/${EXERCISE}.js" "$@"
exit
fi

View File

@ -6,16 +6,6 @@ cp -r /app .
cp -a student app
cd app
if test "$CODE_EDITOR_RUN_ONLY" = true; then
if test -f "./${EXERCISE}.sh"; then
chmod +x "./${EXERCISE}.sh"
fi
# run shell programs on the code editor
bash "./${EXERCISE}.sh" "$@"
exit
fi
if test -f "./student/${EXERCISE}.sh"; then
chmod +x "./student/${EXERCISE}.sh"
fi