Fix mkdir of target location
This commit is contained in:
parent
223557ed17
commit
6f70844708
4
ghcup.sh
4
ghcup.sh
@ -274,8 +274,6 @@ install_ghc() {
|
||||
download_url=$(get_download_url "${myghcver}")
|
||||
download_tarball_name=$(basename "${download_url}")
|
||||
|
||||
[ -e "${target_location}" ] || mkdir "${target_location}"
|
||||
|
||||
if [ -e "${inst_location}" ] ; then
|
||||
if ${FORCE} ; then
|
||||
echo "GHC already installed in ${inst_location}, overwriting!"
|
||||
@ -312,6 +310,8 @@ install_ghc() {
|
||||
die "Failed to install"
|
||||
}
|
||||
|
||||
[ -e "${target_location}" ] || mkdir "${target_location}"
|
||||
|
||||
for f in "${inst_location}"/bin/*-"${myghcver}" ; do
|
||||
[ -e "${f}" ] || die "Something went wrong, ${f} does not exist!"
|
||||
fn=$(basename "${f}")
|
||||
|
Loading…
Reference in New Issue
Block a user