File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
arduino-core/src/cc/arduino/contributions/packages Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,16 @@ public boolean apply(File file) {
192
192
ByteArrayOutputStream stderr = new ByteArrayOutputStream ();
193
193
Executor executor = new CollectStdOutStdErrExecutor (stdout , stderr );
194
194
executor .setWorkingDirectory (folder );
195
- executor .execute (new CommandLine (postInstallScript ));
195
+ executor .setExitValues (null );
196
+ int exitValue = executor .execute (new CommandLine (postInstallScript ));
197
+ executor .setExitValues (new int [0 ]);
196
198
197
199
System .out .write (stdout .toByteArray ());
198
200
System .err .write (stderr .toByteArray ());
201
+
202
+ if (executor .isFailure (exitValue )) {
203
+ throw new IOException ();
204
+ }
199
205
}
200
206
201
207
public List <String > remove (ContributedPlatform platform ) {
You can’t perform that action at this time.
0 commit comments