X Strike Force SVN Admin <[EMAIL PROTECTED]> writes:

> -      if [ -n "$(cat "$XWRAPPER_CONFIG_ROSTER.dpkg-tmp")" ]; then
> +      if [ -n "$(cat "$XWRAPPER_CONFIG_ROSTER.dpkg-tmp" 2> /dev/null)" ]; 
> then

Incidentally, you could just use -s here...

$ ls -l foo bar baz
ls: foo: No such file or directory
ls: bar: No such file or directory
ls: baz: No such file or directory
$ echo foo > foo
$ touch bar
$ ls -l foo bar baz
ls: baz: No such file or directory
-rw-r--r--    1 amu      mit             0 2003-08-28 14:33 bar
-rw-r--r--    1 amu      mit             4 2003-08-28 14:33 foo
$ test -s foo || echo $?
$ test -s bar || echo $?   
1
$ test -s baz || echo $? 
1

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger [EMAIL PROTECTED] (NOT a valid e-mail address) for more info.

Reply via email to