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