From 5d2e828c165dd130c82a2c5c8815c0066ab71c0c Mon Sep 17 00:00:00 2001 From: Jan Felix Langenbach Date: Wed, 8 Jan 2020 05:22:37 +0100 Subject: [PATCH] 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. --- ghcup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghcup b/ghcup index d911dd6..381420c 100755 --- a/ghcup +++ b/ghcup @@ -1542,7 +1542,7 @@ set_ghc() { fi if [ -z "${target_suffix}" ] && [ -d "${inst_location}/share" ] ; then # 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 status_message "Done"