Fixed doc preprocessor validation of gremlin server port

It was matching more than just "8182" and thus failing to generate docs in 
cases when the port was not actually in use. CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/ed447de5
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/ed447de5
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/ed447de5

Branch: refs/heads/TINKERPOP-1489
Commit: ed447de5be9b224a95d681ee98593426ed4c4266
Parents: 769adb2
Author: Stephen Mallette <[email protected]>
Authored: Thu Dec 21 07:18:14 2017 -0500
Committer: Stephen Mallette <[email protected]>
Committed: Thu Dec 21 07:18:14 2017 -0500

----------------------------------------------------------------------
 docs/preprocessor/preprocess.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/ed447de5/docs/preprocessor/preprocess.sh
----------------------------------------------------------------------
diff --git a/docs/preprocessor/preprocess.sh b/docs/preprocessor/preprocess.sh
index 3fafef0..7345700 100755
--- a/docs/preprocessor/preprocess.sh
+++ b/docs/preprocessor/preprocess.sh
@@ -41,7 +41,7 @@ if [ "${DRYRUN_DOCS}" != "*" ]; then
     fi
   done
 
-  netstat -an | awk '{print $4}' | grep -o '[0-9]*$' | grep 8182 > /dev/null 
&& {
+  netstat -an | awk '{print $4}' | grep -o '[0-9]*$' | grep '\b8182\b' > 
/dev/null && {
     echo "The port 8182 is required for Gremlin Server, but already in use. Be 
sure to close the application that currently uses the port before processing 
the docs."
     exit 1
   }

Reply via email to