Skip to content

Commit

Permalink
Update OLD_TDB search to TDB44
Browse files Browse the repository at this point in the history
  • Loading branch information
funjoker authored Oct 27, 2024
1 parent 1f66655 commit 2fc315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release-tdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ cp ../etc/worldserver.conf.dist ../etc/worldserver.conf

# 7. download latest TDB
OLD_TDB_RESPONSE=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/TrinityCore/TrinityCore/releases)
OLD_TDB=$(echo $OLD_TDB_RESPONSE | jq 'map(select(.tag_name|startswith("TDB1025"))) | sort_by(.created_at) | reverse | .[0]')
OLD_TDB=$(echo $OLD_TDB_RESPONSE | jq 'map(select(.tag_name|startswith("TDB44"))) | sort_by(.created_at) | reverse | .[0]')
OLD_TDB_VERSION=$(echo $OLD_TDB | jq -r '.tag_name | split(".")[1]')
OLD_TDB_FOLDER=$OLD_TDB_VERSION'_'`date +%Y_%m_%d`
OLD_TDB_URL=$( echo $OLD_TDB | jq -r '.assets | map(select(.name|endswith("7z"))) | .[0].browser_download_url')
Expand Down

0 comments on commit 2fc315c

Please sign in to comment.