Fix up manpage handling
This commit is contained in:
parent
00119a818b
commit
c3eb34922a
7
ghcup
7
ghcup
@ -1549,8 +1549,13 @@ set_ghc() {
|
|||||||
edo ln $(optionv "-v") -sf "haddock-ghc${target_suffix}" "${BIN_LOCATION}/haddock${target_suffix}"
|
edo ln $(optionv "-v") -sf "haddock-ghc${target_suffix}" "${BIN_LOCATION}/haddock${target_suffix}"
|
||||||
fi
|
fi
|
||||||
if [ -z "${target_suffix}" ] && [ -d "${inst_location}/share" ] ; then
|
if [ -z "${target_suffix}" ] && [ -d "${inst_location}/share" ] ; then
|
||||||
|
# Make sure we don't link "${BIN_LOCATION}/../share/share".
|
||||||
|
# POSIX doesn't allow '-T' for 'ln'.
|
||||||
|
if [ -e "${BIN_LOCATION}/../share" ] ; then
|
||||||
|
edo rm "${BIN_LOCATION}/../share"
|
||||||
|
fi
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
edo ln $(optionv "-v") -sfT ghc/"${myghcver}"/share "${BIN_LOCATION}/../share"
|
edo ln $(optionv "-v") -sf ghc/"${myghcver}"/share "${BIN_LOCATION}/../share"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
status_message "Done"
|
status_message "Done"
|
||||||
|
Loading…
Reference in New Issue
Block a user