Update installer to handle master & dev scripts accordingly
This commit is contained in:
parent
44ecc0a133
commit
b9a94bab72
@ -18,10 +18,10 @@ You can either run the docker image yourself, or you can setup a global ligo exe
|
|||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
# next (pre-release)
|
# 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)
|
# 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:**
|
**Verify your ligo installation by running:**
|
||||||
|
@ -6,8 +6,14 @@ set -euET -o pipefail
|
|||||||
version=$1
|
version=$1
|
||||||
printf "\nInstalling LIGO ($version)\n\n"
|
printf "\nInstalling LIGO ($version)\n\n"
|
||||||
|
|
||||||
# Install the ligo.sh from master
|
if [ $version = "next" ]
|
||||||
wget https://gitlab.com/ligolang/ligo/raw/master/scripts/ligo.sh
|
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
|
# Overwrite LIGO version in the executable
|
||||||
|
Loading…
Reference in New Issue
Block a user