You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/07/19 13:47:02 UTC

[GitHub] [incubator-apisix] membphis commented on a change in pull request #1867: change: fix wrong info `Warning! Running apisix under /root ...`when `make init` at non-root path

membphis commented on a change in pull request #1867:
URL: https://github.com/apache/incubator-apisix/pull/1867#discussion_r456910921



##########
File path: bin/apisix
##########
@@ -52,7 +52,7 @@ if script_path:sub(1, 2) == './' then
         error("failed to fetch current path")
     end
 
-    if string.match(apisix_home, '^/[root][^/]+') then
+    if string.match(apisix_home .. "/", '^[/root]*/$') then

Review comment:
        I do not why the new regex can work correctly :(




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org