On Jan 5, 3:54 pm, krish <das.srikris...@gmail.com> wrote:
> On Thu, Jan 5, 2012 at 9:12 PM, ollies...@googlemail.com
>
> <paul.seym...@barcap.com> wrote:
> > Hello,
>
> > I have this stupid exec on a bash script but bear with me. Works OK on
> > an ancient 0.xx Puppet setup. But not on 2.7.9.
>
> > $command = "( /apps/path/scripts/install.sh || true )  && touch /etc/
> > puppet/puppet.script.done"
>
> Why do you have to do a || with true here?
> afaik, /apps/path/scripts/install.sh && touch
> /etc/puppet/puppet.script.done should do.. or even better use a ;
> instead of &&
>

Thanks that wouldn't work if install.sh gave a non-zero RC. This is
for testing environments
(based on a case statement) outside of that is doesn't call true and
has no need for brackets.

I agree it's stupid and something of an inheritence.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to