Skip to content

Instantly share code, notes, and snippets.

@federicoiosue
Last active January 19, 2018 15:07
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 federicoiosue/0ab10c662b2b2dd498c3fb1796949b7e to your computer and use it in GitHub Desktop.
Save federicoiosue/0ab10c662b2b2dd498c3fb1796949b7e to your computer and use it in GitHub Desktop.
Last release fetching from Github
#!/bin/bash
path=`curl -sL https://github.com/federicoiosue/PSMetadataFetcherJava/releases/latest | egrep -o '/federicoiosue/PSMetadataFetcherJava/releases/download/.+/.*.jar'`
fileName=`echo $path | rev | cut -d '/' -f 1 | rev`
echo $path | wget --base=http://github.com/ -i -
cp $fileName PlayStoreMetadataFetcher.jar
chmod +x /opt/PlayStoreMetadataFetcher.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment