Skip to content

Commit fafb46f

Browse files
authored
Merge pull request #6 from CodinGame/fix-exit-code
Fix: return the compilation exit status
2 parents 42635cd + a376945 commit fafb46f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/resources/cgjavac

+4-1
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)