Redirect grep to /dev/null.

CVS patchset: 7637
CVS date: 2004/12/07 00:58:50
This commit is contained in:
jbj 2004-12-07 00:58:50 +00:00
parent eb9c78fb09
commit fd0b82c71a
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
[ $# -ge 1 ] || {
cat > /dev/null
@ -9,12 +9,12 @@ PYVER=`python -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v"`
case $1 in
-P|--provides)
shift
grep "/usr/bin/python\*\$" 2> /dev/null && echo "python(abi) = ${PYVER}"
grep "/usr/bin/python\*\$" >& /dev/null && echo "python(abi) = ${PYVER}"
exit 0
;;
-R|--requires)
shift
grep "/usr/lib[^/]*/python${PYVER}/" 2> /dev/null && echo "python(abi) = ${PYVER}"
grep "/usr/lib[^/]*/python${PYVER}/" >& /dev/null && echo "python(abi) = ${PYVER}"
exit 0
;;
esac