summaryrefslogtreecommitdiffstats
path: root/gmdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-18 14:45:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-18 14:45:34 +0000
commitdebd68a8f3b16460c3f97da77580fc510b61fbb7 (patch)
tree3e3146d2024b4bd295e94cd2f426d5e7b7491bca /gmdiff
parentefe5d2b415686c0ea582af38cf2ad13c438dab5d (diff)
downloadmandoc-debd68a8f3b16460c3f97da77580fc510b61fbb7.tar.gz
Use [ rather than [[ for portability,
in particular since it makes no difference in the case at hand. Reported by Leah Neukirchen <leah at vuxu dot org> (Void Linux).
Diffstat (limited to 'gmdiff')
-rw-r--r--gmdiff2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmdiff b/gmdiff
index 278ce749..535874fc 100644
--- a/gmdiff
+++ b/gmdiff
@@ -43,7 +43,7 @@ while [ -n "$1" ]; do
${MANDOC:=mandoc} -Ios='OpenBSD ports' $MOPT $file \
2> /tmp/mandoc.err > /tmp/mandoc.out
for i in roff mandoc; do
- [[ -s /tmp/$i.err ]] && echo "$i errors:" && cat /tmp/$i.err
+ [ -s /tmp/$i.err ] && echo "$i errors:" && cat /tmp/$i.err
done
diff -au /tmp/roff.out /tmp/mandoc.out 2>&1
done