misc/check_manpages.sh: add -E option to sed for for macOS compat.
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 28 Feb 2019 14:04:48 +0000 (09:04 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 28 Feb 2019 14:39:27 +0000 (09:39 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

misc/jenkins/check_manpages.sh

index b03b22a..c60113e 100755 (executable)
@@ -59,7 +59,7 @@ for bin in bin/nit*; do
                fi
 
                # Test what is expected
-               if ! diff -q <(sed 's/\s*(.*)//' check_manpages-from_help.out) <(sed  's/\s*(.*)//' check_manpages-from_man.out) > /dev/null; then
+               if ! diff -q <(sed -E 's/\s*(.*)//' check_manpages-from_help.out) <(sed -E 's/\s*(.*)//' check_manpages-from_man.out) > /dev/null; then
                        echo "$opt: mismatch documentation in the manpage $man. Here the word diff:"
                        echo ""
                        wdiff check_manpages-from_help.out check_manpages-from_man.out | colordiff