Skip to content

Instantly share code, notes, and snippets.

@jpemberthy
Created December 7, 2015 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpemberthy/d1415b8cb0271c992264 to your computer and use it in GitHub Desktop.
Save jpemberthy/d1415b8cb0271c992264 to your computer and use it in GitHub Desktop.
touch "$HOME/judge-report.out" && date >> "$HOME/judge-report.out"
cat /tmp/judge* > "/tmp/current-judge-report.out"
if [ "$SANDBOX_EXIT_CODE" == 1 ] || [ "$REGULAR_EXIT_CODE" == 1 ] ; then
echo "failure" >> "$HOME/judge-report.out"
else
echo "success" >> "$HOME/judge-report.out"
cat /tmp/judge* > "/tmp/current-judge-report.out"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment