Skip to content

Commit a386c7e

Browse files
soulbirdsoulbird
andauthored
fix: version: unbound variable (#169)
Co-authored-by: soulbird <[email protected]>
1 parent d5938e8 commit a386c7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-apisix-base.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
set -euo pipefail
33
set -x
44

5+
version=${version:-0.0.0}
6+
57
if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
68
ngx_multi_upstream_module_ver=""
79
mod_dubbo_ver=""
@@ -76,7 +78,6 @@ cd wasm-nginx-module || exit 1
7678
./install-wasmtime.sh
7779
cd ..
7880

79-
version=${version:-0.0.0}
8081
cc_opt=${cc_opt:-}
8182
ld_opt=${ld_opt:-}
8283
luajit_xcflags=${luajit_xcflags:="-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT"}

0 commit comments

Comments
 (0)