Skip to content
Snippets Groups Projects
Commit b8e7c5db authored by Jakob Moser's avatar Jakob Moser
Browse files

Let container output XLE log on errors

parent e27a6dd0
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,17 @@ echo "packed-xml-fs { $SENTENCE } packed-parses.xml" >> xlerc
echo "exit" >> xlerc
# Start XLE (under the X server), this will automatically load xlerc, let it complete the parse and end
xvfb-run xle > /dev/null 2> /dev/null
# Save the messages of xle to xle_messages.txt
xvfb-run xle > xle_messages.txt 2> /dev/null
# Print parse file to stdout
cat packed-parses.xml
if [[ -f packed-parses.xml ]]
then
# Print parse file to stdout and exit with success
cat packed-parses.xml
exit 0
else
# Print xle output to stdout and fail
cat xle_messages.txt
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment