Fix some syntax issues in testing krb5-config output
authorKen Raeburn <raeburn@mit.edu>
Sun, 25 Mar 2007 23:07:53 +0000 (23:07 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 25 Mar 2007 23:07:53 +0000 (23:07 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19269 dc483132-0cff-0310-8789-dd5450dbe970

src/t_krbconf

index caca81d030083e3e526ece90cf538234d07fc21b..9fe898cf23fe6904a4365ebaf88d6fbf874fc97e 100644 (file)
 
 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