Index: job.cpp =================================================================== --- job.cpp (revision 5136) +++ job.cpp (working copy) @@ -247,7 +247,7 @@ output += wxString::FromAscii(buf); } - pclose(fp_script); + rc=pclose(fp_script); // Delete the file/directory. If we fail, don't overwrite the script output in the log, just throw warnings. if (!wxRemoveFile(filename)) @@ -263,7 +263,6 @@ break; } - rc=1; break; } default: