Browse Source

Fixed sourcemod URL

pull/1255/head
UltimateByte 8 years ago
committed by GitHub
parent
commit
fa8e32a7a3
  1. 12
      lgsm/functions/mods_list.sh

12
lgsm/functions/mods_list.sh

@ -68,12 +68,12 @@ fn_mods_scrape_urls(){
# Metamod # Metamod
metamodscrapeurl="http://www.gsptalk.com/mirror/sourcemod" metamodscrapeurl="http://www.gsptalk.com/mirror/sourcemod"
metamodlatestfile="$(wget "${metamodscrapeurl}/?MD" -q -O -| grep "mmsource" | grep "\-linux" | head -n1 | awk -F '>' '{ print $3 }' | awk -F '<' '{ print $1}')" metamodlatestfile="$(wget "${metamodscrapeurl}/?MD" -q -O -| grep "mmsource" | grep "\-linux" | head -n1 | awk -F '>' '{ print $3 }' | awk -F '<' '{ print $1}')"
metamodfasterurl="http://cdn.probablyaserver.com/sourcemod/" metamoddownloadurl="http://cdn.probablyaserver.com/sourcemod/"
metamodurl="${metamodfasterurl}/${metamodlatestfile}" metamodurl="${metamoddownloadurl}/${metamodlatestfile}"
# Sourcemod # Sourcemod
sourcemodmversion="1.8" sourcemodmversion="1.8"
sourcemodscrapeurl="http://www.gsptalk.com/mirror/sourcemod" sourcemodscrapeurl="https://sm.alliedmods.net/smdrop/${sourcemodmversion}/sourcemod-latest-linux"
sourcemodlatestfile="$(wget "${sourcemodscrapeurl}/?MD" -q -O -| grep "sourcemod-" | grep "\-linux" | head -n1 | awk -F '>' '{ print $3 }' | awk -F '<' '{ print $1}')" sourcemodlatestfile="$(wget "${sourcemodscrapeurl}/?MD" -q -O -)"
sourcemodfasterurl="http://cdn.probablyaserver.com/sourcemod/" sourcemoddownloadurl="https://sm.alliedmods.net/smdrop/${sourcemodmversion}"
sourcemodurl="${sourcemodfasterurl}/${sourcemodlatestfile}" sourcemodurl="${sourcemoddownloadurl}/${sourcemodlatestfile}"
} }

Loading…
Cancel
Save