Skip to content

Commit

Permalink
fix(mods): sdtd oxide url parsing from github with jq (#2883)
Browse files Browse the repository at this point in the history
  • Loading branch information
h3o66 committed May 19, 2020
1 parent a76cd3f commit 7a6b9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsm/functions/mods_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ get5url="${get5downloadurl}"
# Oxide
oxiderustlatestlink="https://umod.org/games/rust/download/develop" # fix for linux build 06.09.2019
oxidehurtworldlatestlink=$(curl -sL https://api.github.com/repos/OxideMod/Oxide.Hurtworld/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep "Oxide.Hurtworld.zip")
oxidesdtdlatestlink=$(curl -sL https://api.github.com/repos/OxideMod/Oxide.SevenDaysToDie/releases/latest | grep browser_download_url | cut -d '"' -f 4)
oxidesdtdlatestlink=$(curl -sL https://api.github.com/repos/OxideMod/Oxide.SevenDaysToDie/releases/latest | jq -r '.assets[]|select(.browser_download_url | contains("linux")) | .browser_download_url' )

# Define mods information (required)

Expand Down

0 comments on commit 7a6b9f3

Please sign in to comment.