Skip to content

Commit a376945

Browse files
author
Sylvain Fraïssé
committed
fix: return the compilation exit status
The `cgjavac` script returns systematically 0 (the `echo` exit code). Then, it is never considered as compilation error.
1 parent 42635cd commit a376945

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/resources/cgjavac

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
echo "CG> redirect-streams --input err compilation"
44

55
java -jar /usr/src/codingame/java-compiler/java-compiler.jar "$@"
6+
compilationExitCode=$?
67

7-
echo "CG> redirect-streams --reset --input err compilation"
8+
echo "CG> redirect-streams --reset --input err compilation"
9+
10+
exit $compilationExitCode

0 commit comments

Comments
 (0)