Fix cd when CDPATH is set wrt #98

This commit is contained in:
Julian Ospald 2019-05-17 11:02:07 +08:00
parent 01f7a58565
commit ed456d2071
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

4
ghcup
View File

@ -1360,7 +1360,7 @@ install_ghc() {
unpack "${download_tarball_name}" unpack "${download_tarball_name}"
fi fi
edo cd "ghc-${myghcver}" edo cd "./ghc-${myghcver}"
debug_message "Installing GHC into ${inst_location}" debug_message "Installing GHC into ${inst_location}"
@ -1649,7 +1649,7 @@ compile_ghc() {
unpack "${download_tarball_name}" unpack "${download_tarball_name}"
fi fi
edo cd "ghc-${myghcver}" edo cd "./ghc-${myghcver}"
if [ -n "${build_config}" ] ; then if [ -n "${build_config}" ] ; then
edo cat "${build_config}" > mk/build.mk edo cat "${build_config}" > mk/build.mk