From a5731337719a85e472794bcb03633fc72805ad16 Mon Sep 17 00:00:00 2001 From: Casey Bisson Date: Fri, 19 May 2017 10:39:31 -0700 Subject: [PATCH] curl is required, just go x86_64 everywhere --- triton-docker | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/triton-docker b/triton-docker index e1735d1..4f26161 100644 --- a/triton-docker +++ b/triton-docker @@ -12,9 +12,12 @@ then echo "Triton-docker needs to install an application to continue." echo "This installation will only happen once." +# Check if triton is installed and executable +command -v curl >/dev/null 2>&1 || { echo >&2 "curl is required to complete this installation. Please install before continuing."; exit 1; } + rm -Rf /tmp/triton-docker /usr/local/bin/triton-docker-helper mkdir -p /tmp/triton-docker -curl https://get.docker.com/builds/$(uname -a | awk '{ print $1 }')/$(file /bin/sh | awk '{ print $NF }')/docker-1.12.6.tgz | tar zxvf - -C /tmp/triton-docker +curl https://get.docker.com/builds/$(uname -a | awk '{ print $1 }')/x86_64/docker-1.12.6.tgz | tar zxvf - -C /tmp/triton-docker mv /tmp/triton-docker/docker/docker /usr/local/bin/triton-docker-helper rm -Rf /tmp/triton-docker chmod +x /usr/local/bin/triton-docker-helper