From b9a94bab727b9eacdec8172fc529545f7f5f64a4 Mon Sep 17 00:00:00 2001 From: Matej Sima Date: Thu, 6 Jun 2019 18:28:00 +0200 Subject: [PATCH] Update installer to handle master & dev scripts accordingly --- gitlab-pages/docs/setup-installation.md | 4 ++-- scripts/installer.sh | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gitlab-pages/docs/setup-installation.md b/gitlab-pages/docs/setup-installation.md index 23b8caf19..09ef1b47c 100644 --- a/gitlab-pages/docs/setup-installation.md +++ b/gitlab-pages/docs/setup-installation.md @@ -18,10 +18,10 @@ You can either run the docker image yourself, or you can setup a global ligo exe ```zsh # next (pre-release) -curl https://gitlab.com/ligolang/ligo/blob/master/scripts/installer.sh | bash "next" +curl https://gitlab.com/ligolang/ligo/raw/dev/scripts/installer.sh | bash "next" # e.g. 1.0.0 (stable) -curl https://gitlab.com/ligolang/ligo/blob/master/scripts/installer.sh | bash "1.0.0" +curl https://gitlab.com/ligolang/ligo/raw/master/scripts/installer.sh | bash "1.0.0" ``` **Verify your ligo installation by running:** diff --git a/scripts/installer.sh b/scripts/installer.sh index 948cabe92..7486f5a0f 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -6,8 +6,14 @@ set -euET -o pipefail version=$1 printf "\nInstalling LIGO ($version)\n\n" -# Install the ligo.sh from master -wget https://gitlab.com/ligolang/ligo/raw/master/scripts/ligo.sh +if [ $version = "next" ] + then + # Install the ligo.sh from master + wget https://gitlab.com/ligolang/ligo/raw/dev/scripts/ligo.sh + else + # Install the ligo.sh from master + wget https://gitlab.com/ligolang/ligo/raw/master/scripts/ligo.sh +fi # Overwrite LIGO version in the executable