diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-18 14:45:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-18 14:45:34 +0000 |
commit | debd68a8f3b16460c3f97da77580fc510b61fbb7 (patch) | |
tree | 3e3146d2024b4bd295e94cd2f426d5e7b7491bca /gmdiff | |
parent | efe5d2b415686c0ea582af38cf2ad13c438dab5d (diff) | |
download | mandoc-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-- | gmdiff | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |