Skip to content

Instantly share code, notes, and snippets.

@Frozen-byte
Created October 3, 2017 00:36
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 Frozen-byte/bdacfcc0bdcf976f6422eb0038030780 to your computer and use it in GitHub Desktop.
Save Frozen-byte/bdacfcc0bdcf976f6422eb0038030780 to your computer and use it in GitHub Desktop.
#!/bin/bash
ECOFOLDER=EcoLinux
FILENAME=$(xidel -s https://s3-us-west-2.amazonaws.com/eco-releases -e "/ListBucketResult/Contents[LastModified = max(/ListBucketResult/Contents[contains(Key, 'EcoLinux')]/LastModified/xs:dateTime(.))]/Key")
cd $ECOFOLDER
if [ -f $FILENAME ] ; then
./Eco.x86_64
else
rm -rf *
wget "https://s3-us-west-2.amazonaws.com/eco-releases/$FILENAME"
7z x $FILENAME
chmod +x ./Eco.x86_64
./Eco.x86_64
fi
@Frozen-byte
Copy link
Author

You need a working Executeable of http://videlibri.sourceforge.net/xidel.html to run this script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment