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

Re: OT: Script to add line to file if it doesn't exist



On 09.04.2010 16:50, Jasper wrote:
> 
> 
>> if I only execute one command on true/false conditions, I prefer:
>> command && react_true || react_false
>>
> 
> Although this generally works it is not correct:
> 
> If 'react_true' fails for some reason then 'react_false' is also executed.
> 
> --Jasper.
> 
> 
> 

oops, yes my bad :/


Reply to: