Index: job.cpp =================================================================== --- job.cpp (revision 5232) +++ job.cpp (working copy) @@ -256,6 +256,7 @@ CloseHandle(h_script); + rc=1; #else // The *nix way. @@ -278,7 +279,7 @@ output += wxString::FromAscii(buf); } - pclose(fp_script); + rc=pclose(fp_script); #endif // Delete the file/directory. If we fail, don't overwrite the script output in the log, just throw warnings. @@ -295,7 +296,6 @@ break; } - rc=1; break; } default: