Skip to content

Commit

Permalink
Update latest-dofus-version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
LucBerge authored Jan 3, 2021
1 parent f6ef12a commit 881b8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devscripts/latest-dofus-version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
link=$(curl -s https://www.dofus.com/fr/mmorpg/actualites/maj/correctifs | grep '<a href="/fr/mmorpg/actualites/maj/' | grep 'correctif-' | head -n 1)
pre_version=${link#*'-correctif-'}
version=${pre_version:0:${#pre_version}-2}
version=${pre_version:0:6}
echo ${version//-/.}

0 comments on commit 881b8aa

Please sign in to comment.