Skip to content

Commit

Permalink
fix: version: unbound variable (#169)
Browse files Browse the repository at this point in the history
Co-authored-by: soulbird <zhaothreee@gmail.com>
  • Loading branch information
soulbird and soulbird authored Mar 12, 2022
1 parent d5938e8 commit a386c7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-apisix-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
set -euo pipefail
set -x

version=${version:-0.0.0}

if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
ngx_multi_upstream_module_ver=""
mod_dubbo_ver=""
Expand Down Expand Up @@ -76,7 +78,6 @@ cd wasm-nginx-module || exit 1
./install-wasmtime.sh
cd ..

version=${version:-0.0.0}
cc_opt=${cc_opt:-}
ld_opt=${ld_opt:-}
luajit_xcflags=${luajit_xcflags:="-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT"}
Expand Down

0 comments on commit a386c7e

Please sign in to comment.