Fix new link not overriding old link

This fixes a bug where an existing link to a share directory would not
be overridden, but the new link would be created inside of the directory
referenced by the old link instead.
This commit is contained in:
Jan Felix Langenbach 2020-01-08 05:22:37 +01:00
parent e22ed9dbe2
commit 5d2e828c16

2
ghcup
View File

@ -1542,7 +1542,7 @@ set_ghc() {
fi fi
if [ -z "${target_suffix}" ] && [ -d "${inst_location}/share" ] ; then if [ -z "${target_suffix}" ] && [ -d "${inst_location}/share" ] ; then
# shellcheck disable=SC2046 # shellcheck disable=SC2046
edo ln $(optionv "-v") -sf ghc/"${myghcver}"/share "${BIN_LOCATION}/../share" edo ln $(optionv "-v") -sfT ghc/"${myghcver}"/share "${BIN_LOCATION}/../share"
fi fi
status_message "Done" status_message "Done"