From e9da5354b4f03af303421d29098c1095046c835c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Aguessy?= Date: Wed, 22 Feb 2017 16:50:43 +0100 Subject: [PATCH] Create Linux installer shell script. Closes #6 --- CHANGELOG.md | 4 ++++ README.md | 7 ++++--- getawless.sh | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1fa45d64..de0e5ceed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ As model/relations for resources may evolve, if you have any issues with models related commands, you can run `rm -Rf ~/.awless/aws/rdf` to start a fresh RDF model. +### Features + +- [#6](https://github.com/wallix/awless/issues/6): Create Linux installer shell script: `curl https://raw.githubusercontent.com/wallix/awless/master/getawless.sh | bash` + ### Bugfixes - [#57](https://github.com/wallix/awless/issues/57): Properly fetch buckets when they are in the `us-east-1` region. diff --git a/README.md b/README.md index 2e8529664..f1d110bfe 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,10 @@ Choose one of the following options: -1. Download the latest `awless` binaries (Windows/Linux/macOS) [from Github](https://github.com/wallix/awless/releases/latest) -2. If you have Golang already installed, build the source with: `go get github.com/wallix/awless` -3. On macOS, use [homebrew](http://brew.sh): `brew tap wallix/awless; brew install awless` +1. On macOS, use [homebrew](http://brew.sh): `brew tap wallix/awless; brew install awless` +2. With `curl` (macOS/Linux), run: `curl https://raw.githubusercontent.com/wallix/awless/master/getawless.sh | bash` +3. Download the latest `awless` binaries (Windows/Linux/macOS) [from Github](https://github.com/wallix/awless/releases/latest) +4. If you have Golang already installed, build the source with: `go get github.com/wallix/awless` # Getting started diff --git a/getawless.sh b/getawless.sh index 3acbf6bb6..efe2b8aa5 100755 --- a/getawless.sh +++ b/getawless.sh @@ -21,7 +21,7 @@ else fi -LATEST_VERSION=`curl -s https://updates.awless.io | grep -oE "\d{1,3}.\d{1,3}.\d{1,3}"` +LATEST_VERSION=`curl -s https://updates.awless.io | grep -oE "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}"` DOWNLOAD_URL="https://github.com/wallix/awless/releases/download/$LATEST_VERSION/awless-$OS-$ARCH.zip"