Fix ghcup_version.sh

This commit is contained in:
Julian Ospald 2021-06-13 14:43:00 +02:00
parent 534afa6e8d
commit 7e31798446
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -60,8 +60,13 @@ else
fi fi
cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')" "$CI_PROJECT_DIR"/.local/bin/ghcup if [ "${OS}" = "WINDOWS" ] ; then
cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup-gen')" "$CI_PROJECT_DIR"/.local/bin/ghcup-gen ext=".exe"
else
ext=''
fi
cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')" "$CI_PROJECT_DIR"/.local/bin/ghcup${ext}
cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup-gen')" "$CI_PROJECT_DIR"/.local/bin/ghcup-gen${ext}
### cleanup ### cleanup
@ -71,6 +76,7 @@ else
rm -rf "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup rm -rf "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup
fi fi
which ghcup
### manual cli based testing ### manual cli based testing