Skip to content

Commit

Permalink
Fix script download-toolkit.sh (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel authored Jan 26, 2025
1 parent 124f655 commit d473759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scripts/download-toolkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function determine_latest_toolkit()
latest=$(curl --silent https://docs.percona.com/percona-toolkit/release_notes.html)

local version
version=$(echo "$latest"|grep -A 5 'id="percona-toolkit"'|tail -n +2|grep 'section id="'|head -1|sed 's/.*v\([0-9][0-9]*\)-\([0-9][0-9]*\)-\([0-9][0-9]*\).*/\1.\2.\3/')
version=$(echo "$latest"|grep -i '<section id="v'|head -1|sed 's/.*v\([0-9][0-9]*\)-\([0-9][0-9]*\)-\([0-9][0-9]*\).*/\1.\2.\3/')

if [ "$version" = "" ]; then
echo "Couldn't determine latest toolkit version!" >&2
Expand Down

0 comments on commit d473759

Please sign in to comment.