mirror of https://github.com/01-edu/public.git
fix(entrypoint): correct path to the exercise that is being tested
This commit is contained in:
parent
93135cc76e
commit
ccd119c098
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if test "$CODE_EDITOR_RUN_ONLY" = true; then
|
if test "$CODE_EDITOR_RUN_ONLY" = true; then
|
||||||
node "${EXERCISE}.js" "$@"
|
node "/jail/student/${EXERCISE}.js" "$@"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -6,16 +6,6 @@ cp -r /app .
|
||||||
cp -a student app
|
cp -a student app
|
||||||
cd 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
|
if test -f "./student/${EXERCISE}.sh"; then
|
||||||
chmod +x "./student/${EXERCISE}.sh"
|
chmod +x "./student/${EXERCISE}.sh"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue