From b5f175f6c112d416dd7c2f431bb719bddb762d0f Mon Sep 17 00:00:00 2001 From: Matej Sima Date: Mon, 27 May 2019 18:10:25 +0200 Subject: [PATCH] Add pulling of the docker image used by the CLI wrapper, nicer comments & messages --- scripts/installer.sh | 9 ++++++--- scripts/ligo.sh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 0ba024dad..29dd04742 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -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" \ No newline at end of file diff --git a/scripts/ligo.sh b/scripts/ligo.sh index 24a7bf0c9..8ccadad8e 100755 --- a/scripts/ligo.sh +++ b/scripts/ligo.sh @@ -1,2 +1,2 @@ #!/bin/bash -docker run -it -v "$PWD":"$PWD" -w "$PWD" ligolang/ligo "$@" \ No newline at end of file +docker run -it -v "$PWD":"$PWD" -w "$PWD" ligolang/ligo:latest "$@" \ No newline at end of file