update install script
update README
This commit is contained in:
parent
7d5812e192
commit
f946e8a800
|
@ -16,8 +16,10 @@ It is essentially a wrapper around `rsync`. Additionally it will maintain an arc
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
The easiest way to install `soyuz-cli` is using the install script:
|
The easiest way to install `soyuz-cli` is using the install script. If you are using MacOS, run this command in `Terminal`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl https://hugh.run/install-soyuz | bash
|
curl https://hugh.run/install-soyuz | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Alternatively, you can build from source if you have rust and cargo installed.
|
|
@ -1,10 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# This script installs soyuz-cli
|
# This script installs soyuz-cli
|
||||||
|
|
||||||
|
# Get the latest version number
|
||||||
|
url=$(curl $1 -s -L -I -o /dev/null -w '%{url_effective}' https://github.com/hughrun/soyuz-cli/releases/latest)
|
||||||
|
version=${url##*/} # retain the part after the last slash
|
||||||
# Download latest binary and save in /usr/local/bin
|
# Download latest binary and save in /usr/local/bin
|
||||||
curl -L https://github.com/hughrun/soyuz-cli/releases/download/latest/MacOS > /usr/local/bin/soyuz
|
curl -L https://github.com/hughrun/soyuz-cli/releases/download/$version/MacOS > /usr/local/bin/soyuz
|
||||||
# make it executable
|
# make it executable
|
||||||
chmod +x /usr/local/bin/yawp_test
|
chmod +x /usr/local/bin/soyuz
|
||||||
|
|
||||||
cat 1>&2 << 'EOM'
|
cat 1>&2 << 'EOM'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue