Skip to content

Commit

Permalink
Merge pull request #9 from planetscale/gary-update-release-roster
Browse files Browse the repository at this point in the history
Updated README and added OSTYPE check
  • Loading branch information
Gary Edgar authored Feb 15, 2019
2 parents 2d1463f + 26f91fe commit 2dde4fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ upload to [github](https://github.com/vitessio/vitess/releases) rather than the
docker images at
[https://github.com/vitessio/vitess/tree/master/docker](https://github.com/vitessio/vitess/tree/master/docker).

## Install Latest Vitess Release
## Install Latest Vitess Release (Linux)

The `install_latest.sh` script is a helper to install the latest release from
[github](https://github.com/vitessio/vitess/releases):
[github](https://github.com/vitessio/vitess/releases) on Linux:

```
git clone https://github.com/planetscale/vitess-releases.git
Expand Down
5 changes: 5 additions & 0 deletions bin/install_latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail

if [[ $OSTYPE != "linux-gnu" ]]; then
echo "Non-linux OS detected. Exiting."
exit 1
fi

INSTALL_DIR=${HOME}
RELEASE_REPO_URL=https://api.github.com/repos/planetscale/vitess-releases/releases/latest
LATEST_RELEASE_URL=$(curl -s ${RELEASE_REPO_URL} | grep "browser_download_url.*gz" | awk -F'"' '{print $4}')
Expand Down

0 comments on commit 2dde4fc

Please sign in to comment.