Fix symlinking in install subcommand

This commit is contained in:
Julian Ospald 2018-09-29 22:20:24 +08:00
parent 8cc0ef35e1
commit 6790ea56f9
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 2 additions and 1 deletions

View File

@ -250,9 +250,10 @@ install_ghc() {
for f in "${inst_location}"/bin/*-"${myghcver}" ; do
fn=$(basename "${f}")
ln $(echov "-v") -s ../"${myghcver}/bin/${fn}" "${target_location}/${fn}"
ln $(echov "-v") -sf ../"${myghcver}/bin/${fn}" "${target_location}/${fn}"
unset fn
done
ln $(echov "-v") -sf ../"${myghcver}"/bin/runhaskell "${target_location}/runhaskell-${myghcver}"
printf_green "Done installing, run \"ghci-${myghcver}\" or set up your current GHC via: ${SCRIPT} set-ghc ${myghcver}"