Skip to content

Commit

Permalink
fix(update.sh): use kbt version from kong repo
Browse files Browse the repository at this point in the history
  • Loading branch information
locao committed Jun 24, 2024
1 parent e0579bb commit e7e5011
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ function get_url() {

hub --version &> /dev/null || die "hub is not in PATH. Get it from https://github.com/github/hub"

#kbt_in_kong_v=$(curl -sL https://raw.githubusercontent.com/Kong/kong/$version/.requirements | grep 'KONG_BUILD_TOOLS_VERSION\=' | awk -F"=" '{print $2}' | tr -d "'[:space:]")
kbt_in_kong_v=4.33.19
kbt_in_kong_v=$(curl -sL https://raw.githubusercontent.com/Kong/kong/$version/.requirements | grep 'KONG_BUILD_TOOLS_VERSION\=' | awk -F"=" '{print $2}' | tr -d "'[:space:]")
if [[ -n "$kbt_in_kong_v" ]]; then
sed -i.bak 's/KONG_BUILD_TOOLS?=.*/KONG_BUILD_TOOLS?='$kbt_in_kong_v'/g' Makefile
fi
Expand Down

0 comments on commit e7e5011

Please sign in to comment.