Skip to content

Instantly share code, notes, and snippets.

@federicoiosue
Last active January 19, 2018 15:07
Show Gist options
  • 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