This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new f4161d3 chore: minor change in bin/apisix (#2847)
f4161d3 is described below
commit f4161d39a495879edffbc75e2099f6e487bae81d
Author: willmafh <[email protected]>
AuthorDate: Wed Nov 25 19:27:04 2020 +0800
chore: minor change in bin/apisix (#2847)
---
bin/apisix | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bin/apisix b/bin/apisix
index ab1ff33..9a07b9c 100755
--- a/bin/apisix
+++ b/bin/apisix
@@ -62,13 +62,12 @@ end
local function get_openresty_version()
local str = "nginx version: openresty/"
local ret = util.execute_cmd("openresty -v 2>&1")
- local pos = string.find(ret,str)
+ local pos = string.find(ret, str)
if pos then
return string.sub(ret, pos + string.len(str))
end
str = "nginx version: nginx/"
- ret = util.execute_cmd("openresty -v 2>&1")
pos = string.find(ret, str)
if pos then
return string.sub(ret, pos + string.len(str))