lkml.org 
[lkml]   [2015]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/45] headers_install.sh: enhance error handling
On Tue, Feb 17, 2015 at 02:17:51PM +0100, Michal Marek wrote:
> On 2015-02-17 00:05, Mikko Rapeli wrote:
> > Exit with error if using undefined variables or if any sub command fails
> > with error return value. unidef needs special handling since but this can
> > be done without the trap. Enables exaniming intermediate files if some
> > commands failed.
>
> The intermediate files are removed by your patch as well, aren't they?
> Actually, I don't see any change in behavior after your patch.

Yes, if everything succeeded without errors, then intermediate files
are removed. But the files are left around if something fails which is
what I like in scripts.

-Mikko


\
 
 \ /
  Last update: 2015-03-11 00:01    [W:0.282 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site