Skip to content

Commit 2b89ce9

Browse files
committed
get mysql oldest version
1 parent 4ff139f commit 2b89ce9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

run-mysql-8.0.sh

-5
This file was deleted.

run-mysql-oldest.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
SOURCE_DIR=`dirname "${BASH_SOURCE[0]}"`
4+
5+
MYSQL_VERSION=$(curl -s --request GET --url https://endoflife.date/api/mysql.json |
6+
jq -r --arg today $(date +%Y%m%d) 'map(select((.eol == false) or ((.eol | gsub("-";"") | tonumber) > ($today | tonumber)))) | min_by(.cycle) | .cycle')
7+
8+
MYSQL_VERSION=$MYSQL_VERSION $SOURCE_DIR/_run-mysql.sh

0 commit comments

Comments
 (0)