diff --git a/.gitlab/script/ghcup_release.sh b/.gitlab/script/ghcup_release.sh index 08d4297..5939d91 100755 --- a/.gitlab/script/ghcup_release.sh +++ b/.gitlab/script/ghcup_release.sh @@ -37,12 +37,12 @@ else fi mkdir out -cp "$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')" . -ver=$(./ghcup --numeric-version) +binary=$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup') +ver=$("${binary}" --numeric-version) if [ "${OS}" = "DARWIN" ] ; then - strip ./ghcup + strip "${binary}" else - strip -s ./ghcup + strip -s "${binary}" fi -cp ghcup out/${ARTIFACT}-${ver} +cp "${binary}" out/${ARTIFACT}-${ver}