Redirect 'rpm -qa' stderr to /dev/null instead of null.
Signed-Off-By: Sebastien Dugue <[email protected]>
---
hca_self_test.ofed | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hca_self_test.ofed b/hca_self_test.ofed
index c7c5492..4f29080 100755
--- a/hca_self_test.ofed
+++ b/hca_self_test.ofed
@@ -168,7 +168,7 @@ else
fi
if [ $RPM_KER_VER -ne 0 ]; then
- RPM_CUR_BOOTED_KER=`rpm -qa 2> null| grep kernel-ib | grep $(echo
$BOOTED_KER | sed s/-/_/) | wc -l`
+ RPM_CUR_BOOTED_KER=`rpm -qa 2> /dev/null| grep kernel-ib | grep $(echo
$BOOTED_KER | sed s/-/_/) | wc -l`
if [ $RPM_CUR_BOOTED_KER -eq 0 ]; then
echo -e "Host Driver RPM Check .................. ${red}FAIL"
tput sgr0
--
1.6.3.rc3.12.gb7937
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general