elm/bin/install-elm-format

20 lines
371 B
Text
Raw Normal View History

2016-08-26 07:59:03 +00:00
#!/usr/bin/env bash
2016-08-26 16:50:55 +00:00
OS=$(
case $(uname) in
(Darwin*)
echo "mac";;
(Linux*)
echo "linux";;
(Windows*)
echo "windows";;
(*)
echo "linux";;
esac)
2016-08-26 07:59:03 +00:00
2016-08-26 16:50:55 +00:00
URL=https://github.com/avh4/elm-format/releases/download/0.4.0-alpha/elm-format-0.17-0.4.0-alpha-$OS-x64.tgz
curl -L $URL | tar -xvzO > bin/elm-format
2016-08-26 07:59:03 +00:00
chmod u+x bin/elm-format