Skip to content

Instantly share code, notes, and snippets.

@skyisle
Created March 15, 2017 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyisle/7dcb91780f4318912693905fe3091430 to your computer and use it in GitHub Desktop.
Save skyisle/7dcb91780f4318912693905fe3091430 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /Applications/League\ of\ Legends.app/Contents/LoL/RADS/projects/league_client/releases/
LATESTVERSION=`ls -v | grep -e '\d*\.\d*\.\d*\.\d*' | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1`
echo $LATESTVERSION
cd $LATESTVERSION/deploy
sed -ie 's/rso_platform_id: NA1/rso_platform_id: KR/g' system.yaml
sed -ie 's/.na2.lol.riotgames.com/.kr.lol.riotgames.com/g' system.yaml
sed -ie 's/web_region: na/web_region: kr/g' system.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment