Sebastian Dransfeld <[EMAIL PROTECTED]> writes:

> 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:~#

try with double brace [[ "$SECURITY" -gt 3 ]]

-- 
MandrakeSoft Inc                     http://www.chmouel.org
                      --Chmouel

Reply via email to