From: Ken Raeburn Date: Sun, 25 Mar 2007 23:07:53 +0000 (+0000) Subject: Fix some syntax issues in testing krb5-config output X-Git-Tag: krb5-1.7-alpha1~1233 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=98bd50dd0e5fd0d687808177d155399d29e1e076;p=krb5.git Fix some syntax issues in testing krb5-config output git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19269 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/t_krbconf b/src/t_krbconf index caca81d03..9fe898cf2 100644 --- a/src/t_krbconf +++ b/src/t_krbconf @@ -24,15 +24,15 @@ echo "Testing if krb5-config outputs shell variables" echo " Testing --libs argument" -if `./krb5-config --libs kdb | egrep -s '\\$'`; then - echo "Error './krb5-config --libs kdb' contains shell variables"; - exit 1; +if ./krb5-config --libs kdb | egrep -s '\$' > /dev/null; then + echo "Error './krb5-config --libs kdb' contains shell variables" + exit 1 fi echo " Testing --cflags argument" -if `./krb5-config --cflags | egrep -s '\\$'`; then \ - echo "Error './krb5-config --cflags' contains shell variables"; \ - exit 1; \ +if ./krb5-config --cflags | egrep -s '\$' > /dev/null; then + echo "Error './krb5-config --cflags' contains shell variables" + exit 1 fi echo "krb5-config tests pass" exit 0