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:
parent
e22ed9dbe2
commit
5d2e828c16
2
ghcup
2
ghcup
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user