* cygmagic: Suppress error output when figuring out if sum takes an option.

This commit is contained in:
Christopher Faylor 2002-01-22 03:48:16 +00:00
parent 2c2473bcac
commit aed69a5b0d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-01-21 Christopher Faylor <cgf@redhat.com>
* cygmagic: Suppress error output when figuring out if sum takes an
option.
2002-01-21 Christopher Faylor <cgf@redhat.com>
* cygmagic: Attempt to figure out if sum takes an option.

View File

@ -17,7 +17,7 @@ cat <<EOF > $file_magic
/* autogenerated - do not edit */
#include "$file"
EOF
if sum -r /dev/null; then
if sum -r /dev/null >/dev/null 2>&1; then
sumit(){ sum -r $*; }
else
sumit(){ sum $*; }