diff --git a/README.md b/README.md index 7fe1060..23ba288 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ It is mostly a wrapper around `rsync`. Additionally it will maintain an archive The easiest way to install `soyuz-cli` is using the install script. If you are using MacOS, run this command in `Terminal`: ```sh -curl https://hugh.run/install-soyuz | bash +curl -L https://hugh.run/install-soyuz | bash ``` Alternatively, you can build from source if you have rust and cargo installed. diff --git a/install.sh b/install.sh index a3c4e9e..5323a3c 100755 --- a/install.sh +++ b/install.sh @@ -2,11 +2,10 @@ # 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 -curl -L https://github.com/hughrun/soyuz-cli/releases/download/$version/MacOS > /usr/local/bin/soyuz +# Download latest binary +wget -q --show-progress https://github.com/hughrun/soyuz-cli/releases/latest/download/MacOS +# mv to /usr/local/bin and rename +mv MacOS /usr/local/bin/soyuz # make it executable chmod +x /usr/local/bin/soyuz