1
1
mirror of https://github.com/Yvee1/hascard.git synced 2024-11-22 04:33:06 +03:00

Try to fix install-stack.sh script

This commit is contained in:
Steven van den Broek 2021-07-16 20:24:26 +02:00
parent 203b54b32d
commit a3e398da82
2 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,7 @@ if test ! "$GITHUB_REF"
then
echo 'This is not a release build.'
else
if [ "$RUNNER_OS" = "linux" ]
if [ "$RUNNER_OS" = "Linux" ]
then
ARCH="linux"
else

View File

@ -5,6 +5,12 @@ then
echo 'Stack is already installed.'
else
echo "Installing Stack for $RUNNER_OS..."
if [ "$RUNNER_OS" = "Linux" ]
then
ARCH="linux"
else
ARCH="osx"
fi
URL="https://www.stackage.org/stack/$RUNNER_OS-x86_64"
curl --location "$URL" > stack.tar.gz
gunzip stack.tar.gz