Improve error message
This commit is contained in:
parent
83d7f7152f
commit
8e1a5a0172
2
ghcup
2
ghcup
@ -388,7 +388,7 @@ install_ghc() {
|
|||||||
) || {
|
) || {
|
||||||
[ -e "${tmp_dir}/${download_tarball_name}" ] && rm "${tmp_dir}/${download_tarball_name}"
|
[ -e "${tmp_dir}/${download_tarball_name}" ] && rm "${tmp_dir}/${download_tarball_name}"
|
||||||
[ -e "${tmp_dir}/ghc-${myghcver}" ] && rm -r "${tmp_dir}/ghc-${myghcver}"
|
[ -e "${tmp_dir}/ghc-${myghcver}" ] && rm -r "${tmp_dir}/ghc-${myghcver}"
|
||||||
die "Failed to install"
|
die "Failed to install, consider updating this script via: ${SCRIPT} self-update"
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -e "${BIN_LOCATION}" ] || mkdir "${BIN_LOCATION}"
|
[ -e "${BIN_LOCATION}" ] || mkdir "${BIN_LOCATION}"
|
||||||
|
Loading…
Reference in New Issue
Block a user