Download elm-format on windows

This commit is contained in:
Morten Nygaard Åsnes 2017-10-10 20:41:48 +02:00
parent b4c2346263
commit 92305de08b

View file

@ -8,12 +8,20 @@ case $(uname) in
echo "linux";; echo "linux";;
(Windows*) (Windows*)
echo "windows";; echo "windows";;
(MINGW*)
echo "windows";;
(*) (*)
echo "linux";; echo "linux";;
esac) esac)
URL=https://github.com/avh4/elm-format/releases/download/0.6.1-alpha/elm-format-0.18-0.6.1-alpha-$OS-x64.tgz if [ "$OS" == "windows" ]; then
echo $URL
curl -L $URL | tar -xvzO > bin/elm-format 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 chmod u+x bin/elm-format