> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sebastian Dransfeld
> Sent: Tuesday, April 03, 2001 7:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Fwd: [Cooker] File named "3"
> 
> 
> On 3 Apr 2001, Chmouel Boudjnah wrote:
> 
> > Sebastian Dransfeld <[EMAIL PROTECTED]> writes:
> >
> > > On 3 Apr 2001, Chmouel Boudjnah wrote:
> > >
> > > > Digital Wokan <[EMAIL PROTECTED]> writes:
> > > >
> > > > > I deleted the original and just kept this fix.  Problem is, 
> somebody cut
> > > > > out the name of the file being edited here.  So I need a 
> fix for this
> > > > > fix. :)
> > > >
> > > > ok it fixed in last initscripts.
> > > >
> > >
> > > The script should check if $SECURITY is set.
> > >
> > > root@s186b:/usr/lib/rpm/i386-mandrake-linux# echo $SECURITY
> > >
> > > root@s186b:/usr/lib/rpm/i386-mandrake-linux# [ $SECURITY -gt 3 ]
> > > [: -gt: unary operator expected
> > > root@s186b:/usr/lib/rpm/i386-mandrake-linux#
> >
> >
> > humm well just noticed you don't put " " quote between $SECURITY.
> >
> root@s186b:~# [ "$SECURITY" -gt 3 ]
> [: : integer expression expected
> root@s186b:~# echo $SECURITY
> 
> root@s186b:~#
> 

[ "${SECURITY:-0}" -gt 3 ]

(or whatever value is appropriate)?

-andrej

Reply via email to