[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#696564: unblock: fusioninventory-agent/2.2.3-5



On Thu, Apr  4, 2013 at 22:15:34 +0200, Raphael Hertzog wrote:

> Hi,
> 
> On Thu, 04 Apr 2013, Gonéri Le Bouder wrote:
> >      # remove the configuration file itself
> >      rm -f /etc/fusioninventory/agent.cfg
> > -    rm -r /etc/fusioninventory
> > +    [ -d /etc/fusioninventory ] && rmdir --ignore-fail-on-non-empty /etc/fusioninventory
> 
> AFAIK, this is not better since when /etc/fusioninventory doesn't exist
> the first test fails and with set -e your script ends in error.
> 
Not true...

from bash(1) about set -e:
"The shell does not exit if the command that fails is [...] part of any
command executed in a && or || list except the command following the
final && or || [...]"

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature


Reply to: