Skip to content

Commit

Permalink
Fix update.sh to work on 5.5 and lower too
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Nov 3, 2014
1 parent 6a9c2a9 commit 19f21a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ versions=( "${versions[@]%/}" )

for version in "${versions[@]}"; do
fullVersion="$(curl -sSL "https://dev.mysql.com/downloads/mysql/$version.html?os=2" \
| grep '">(mysql-'"$version"'.*-linux-glibc2\.5-x86_64\.tar\.gz)<' \
| sed -r 's!.*\(mysql-([^<)]+)-linux-glibc2\.5-x86_64\.tar\.gz\).*!\1!' \
| grep '">(mysql-'"$version"'.*-linux.*-x86_64\.tar\.gz)<' \
| sed -r 's!.*\(mysql-([^<)]+)-linux.*-x86_64\.tar\.gz\).*!\1!' \
| sort -V | tail -1)"

(
Expand Down

0 comments on commit 19f21a0

Please sign in to comment.