Add pulling of the docker image used by the CLI wrapper, nicer comments & messages

This commit is contained in:
Matej Sima 2019-05-27 18:10:25 +02:00
parent 15d1e0e580
commit b5f175f6c1
2 changed files with 7 additions and 4 deletions

View File

@ -6,13 +6,16 @@ set -euET -o pipefail
echo "Installing LIGO"
# Install the ligo.sh from master
wget https://gitlab.com/ligolang/ligo/blob/master/scripts/ligo.sh
# wget https://gitlab.com/ligolang/ligo/blob/master/scripts/ligo.sh
wget localhost:8080/scripts/ligo.sh
# Copy the exucutable to the appropriate directory
sudo cp ligo.sh /usr/local/bin/ligo
sudo chmod +x /usr/local/bin/ligo
rm ligo.sh
# Pull the docker image used by ligo.sh
docker pull ligolang/ligo:latest
# Installation finished, try running 'ligo' from your CLI
echo "Installation successful, trying to run 'ligo' now. \n"
ligo --help
echo "Installation successful, try to run 'ligo --help' now. \n"

View File

@ -1,2 +1,2 @@
#!/bin/bash
docker run -it -v "$PWD":"$PWD" -w "$PWD" ligolang/ligo "$@"
docker run -it -v "$PWD":"$PWD" -w "$PWD" ligolang/ligo:latest "$@"