mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
modify return code handling from the Command script (#1798)
This commit is contained in:
@@ -149,8 +149,12 @@ public class Compiler {
|
||||
writer.flush();
|
||||
writer.close();
|
||||
|
||||
String errorString = errorBuffer.toString();
|
||||
if (errorString.trim().length() != 0) {
|
||||
success = false;
|
||||
}
|
||||
BufferedReader reader =
|
||||
new BufferedReader(new StringReader(errorBuffer.toString()));
|
||||
new BufferedReader(new StringReader(errorString));
|
||||
//System.err.println(errorBuffer.toString());
|
||||
|
||||
String line = null;
|
||||
|
||||
@@ -104,6 +104,7 @@ cmd_name='processing-java'
|
||||
if [ $current_name = $cmd_name ]
|
||||
then
|
||||
java processing.mode.java.Commander "$@"
|
||||
exit $?
|
||||
else
|
||||
# Start Processing in the same directory as this script
|
||||
if [ "$1" ]; then
|
||||
|
||||
Reference in New Issue
Block a user