mirror of
https://github.com/correl/elm.git
synced 2024-11-15 19:19:31 +00:00
19 lines
371 B
Bash
Executable file
19 lines
371 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
OS=$(
|
|
case $(uname) in
|
|
(Darwin*)
|
|
echo "mac";;
|
|
(Linux*)
|
|
echo "linux";;
|
|
(Windows*)
|
|
echo "windows";;
|
|
(*)
|
|
echo "linux";;
|
|
esac)
|
|
|
|
URL=https://github.com/avh4/elm-format/releases/download/0.5.2-alpha/elm-format-0.18-0.5.2-alpha-$OS-x64.tgz
|
|
|
|
curl -L $URL | tar -xvzO > bin/elm-format
|
|
|
|
chmod u+x bin/elm-format
|