From 59bb15e0c1413279e0e92312fa604b3a2d052c4d Mon Sep 17 00:00:00 2001 From: Erik Simmler Date: Tue, 10 Oct 2017 21:42:18 -0400 Subject: [PATCH] Standardize line endings --- .gitattributes | 1 + bin/install-elm-format | 50 +++++++++++++++++++++--------------------- 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/bin/install-elm-format b/bin/install-elm-format index e27187b..031c299 100755 --- a/bin/install-elm-format +++ b/bin/install-elm-format @@ -1,25 +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 - 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 +#!/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