mirror of
https://github.com/correl/elm.git
synced 2024-11-27 19:19:53 +00:00
Standardize line endings
This commit is contained in:
parent
44b1cde071
commit
59bb15e0c1
2 changed files with 26 additions and 25 deletions
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
* text=auto
|
|
@ -1,25 +1,25 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
OS=$(
|
OS=$(
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
(Darwin*)
|
(Darwin*)
|
||||||
echo "mac";;
|
echo "mac";;
|
||||||
(Linux*)
|
(Linux*)
|
||||||
echo "linux";;
|
echo "linux";;
|
||||||
(Windows*)
|
(Windows*)
|
||||||
echo "windows";;
|
echo "windows";;
|
||||||
(MINGW*)
|
(MINGW*)
|
||||||
echo "windows";;
|
echo "windows";;
|
||||||
(*)
|
(*)
|
||||||
echo "linux";;
|
echo "linux";;
|
||||||
esac)
|
esac)
|
||||||
|
|
||||||
if [ "$OS" == "windows" ]; then
|
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
|
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
|
curl -L $URL | funzip > bin/elm-format
|
||||||
else
|
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
|
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
|
curl -L $URL | tar -xvzO > bin/elm-format
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod u+x bin/elm-format
|
chmod u+x bin/elm-format
|
||||||
|
|
Loading…
Reference in a new issue