Skip to content

Commit

Permalink
Update the binary path
Browse files Browse the repository at this point in the history
in accordance with submariner-io/subctl#837 changing the
`subctl` binary location.

Epic: submariner-io/enhancements#182

Signed-off-by: Janki Chhatbar <[email protected]>
  • Loading branch information
Jaanki committed Jul 18, 2023
1 parent 34fa8c4 commit 3bf43b3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,15 @@
case ${url} in
*tar.xz)
${get} "${url}" | tar xfJ - || return 1
# shellcheck disable=SC2086
install_subctl subctl*/subctl*${os}-${architecture}*
version=$(echo "$url" | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+|devel' | sed 's/^v//')
# Compare the version with 0.16.0 or "devel"
if [[ "$version" == "devel" || "$(printf '%s\n' "0.16.0" "$version" | sort -V | head -n1)" == "0.16.0" ]]; then
# shellcheck disable=SC2086
install_subctl subctl*/subctl
else
# shellcheck disable=SC2086
install_subctl subctl*/subctl*${os}-${architecture}*
fi
;;
*) # non tar.xz releases (older)
filename=$(basename "${url}")
Expand Down

0 comments on commit 3bf43b3

Please sign in to comment.