According to the Autoconf manual, "grep -q" is not portable, so instead
redirect stdout to /dev/null.
-e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g' \
-e 's,[@]ovsdbmonitordir[@],$(ovsdbmonitordir),g' \
> $@.tmp
- @if head -n 1 $@.tmp | grep -q '#!'; then \
+ @if head -n 1 $@.tmp | grep '#!' > /dev/null; then \
echo chmod +x $@.tmp; \
chmod +x $@.tmp; \
fi
AT_CHECK([perl $srcdir/uuidfilt.pl stdout], [0],
[[[{"uuid":["uuid","<0>"]},{}]
]])
-AT_CHECK([grep -q "add row for 5" db])
+AT_CHECK([grep "add row for 5" db], [0], [ignore])
AT_CLEANUP
AT_SETUP([ovsdb-tool compact])
file=$1
name=${1-$2}
date=$(date -r $file)
- if grep -q -e '-BEGIN CERTIFICATE-' "$file"; then
+ if grep -e '-BEGIN CERTIFICATE-' "$file" > /dev/null; then
fingerprint=$(openssl x509 -noout -in "$file" -fingerprint |
sed 's/SHA1 Fingerprint=//' | tr -d ':')
else