Index: script.cc =================================================================== RCS file: /cvs/cygwin-apps/setup/script.cc,v retrieving revision 2.21 diff -u -p -r2.21 script.cc --- script.cc 14 Oct 2005 04:00:50 -0000 2.21 +++ script.cc 31 Jan 2006 14:39:40 -0000 @@ -243,14 +243,15 @@ Script::run() const if (to_log && !file_out.isEmpty ()) log(LOG_BABBLE) << file_out << endLog; - if (!retval) + if (retval) log(LOG_PLAIN) << "abnormal exit: exit code=" << retval << endLog;; /* if file exists then delete it otherwise just ignore no file error */ io_stream::remove (String ("cygfile://") + scriptName + ".done"); - io_stream::move (String ("cygfile://") + scriptName, - String ("cygfile://") + scriptName + ".done"); + if (!retval) + io_stream::move (String ("cygfile://") + scriptName, + String ("cygfile://") + scriptName + ".done"); return retval; }