diff options
Diffstat (limited to '.gitlab/win32-init.sh')
-rw-r--r-- | .gitlab/win32-init.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab/win32-init.sh b/.gitlab/win32-init.sh index aec73ce083..c3226591bc 100644 --- a/.gitlab/win32-init.sh +++ b/.gitlab/win32-init.sh @@ -22,7 +22,10 @@ if [ ! -e $toolchain/bin/ghc ]; then exit 1 ;; esac - curl https://downloads.haskell.org/~ghc/$GHC_VERSION/ghc-$GHC_VERSION-$triple.tar.xz | tar -xJ + if [ -z "$GHC_TARBALL_URL" ]; then + GHC_TARBALL_URL="https://downloads.haskell.org/~ghc/$GHC_VERSION/ghc-$GHC_VERSION-$triple.tar.xz" + fi + curl "$GHC_TARBALL_URL" | tar -xJ mv ghc-$GHC_VERSION toolchain fi |