From 44b1cde071d50874f99fc4c3ec22ed4bb016b801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Nygaard=20=C3=85snes?= Date: Tue, 10 Oct 2017 20:53:16 +0200 Subject: [PATCH] Removed debugging printing --- bin/install-elm-format | 52 ++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/bin/install-elm-format b/bin/install-elm-format index 7953469..e27187b 100755 --- a/bin/install-elm-format +++ b/bin/install-elm-format @@ -1,27 +1,25 @@ -#!/usr/bin/env bash - -OS=$( -case $(uname) in - (Darwin*) - echo "mac";; - (Linux*) - echo "linux";; - (Windows*) - echo "windows";; - (MINGW*) - echo "windows";; - (*) - echo "linux";; -esac) - -if [ "$OS" == "windows" ]; then - echo $URL - URL=https://github.com/avh4/elm-format/releases/download/0.6.1-alpha/elm-format-0.18-0.6.1-alpha-win-i386.zip - curl -L $URL | funzip > bin/elm-format -else - echo $URL - URL=https://github.com/avh4/elm-format/releases/download/0.6.1-alpha/elm-format-0.18-0.6.1-alpha-$OS-x64.tgz - curl -L $URL | tar -xvzO > bin/elm-format -fi - -chmod u+x bin/elm-format +#!/usr/bin/env bash + +OS=$( +case $(uname) in + (Darwin*) + echo "mac";; + (Linux*) + echo "linux";; + (Windows*) + echo "windows";; + (MINGW*) + echo "windows";; + (*) + echo "linux";; +esac) + +if [ "$OS" == "windows" ]; then + URL=https://github.com/avh4/elm-format/releases/download/0.6.1-alpha/elm-format-0.18-0.6.1-alpha-win-i386.zip + curl -L $URL | funzip > bin/elm-format +else + URL=https://github.com/avh4/elm-format/releases/download/0.6.1-alpha/elm-format-0.18-0.6.1-alpha-$OS-x64.tgz + curl -L $URL | tar -xvzO > bin/elm-format +fi + +chmod u+x bin/elm-format