diff options
author | jbj <devnull@localhost> | 2004-12-07 00:58:50 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-12-07 00:58:50 +0000 |
commit | fd0b82c71af015861a246541d7f8ed694dbad701 (patch) | |
tree | abc8830be975c67e81b78838b2c35df6973dfdbe /scripts | |
parent | eb9c78fb09102564d29d32d8e8522110e4a6fd15 (diff) | |
download | librpm-tizen-fd0b82c71af015861a246541d7f8ed694dbad701.tar.gz librpm-tizen-fd0b82c71af015861a246541d7f8ed694dbad701.tar.bz2 librpm-tizen-fd0b82c71af015861a246541d7f8ed694dbad701.zip |
Redirect grep to /dev/null.
CVS patchset: 7637
CVS date: 2004/12/07 00:58:50
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pythondeps.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/pythondeps.sh b/scripts/pythondeps.sh index 61c89f38c..7ccd0761e 100755 --- a/scripts/pythondeps.sh +++ b/scripts/pythondeps.sh @@ -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 |