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