From 6790ea56f9e498203d8c214270e0a9f87280bb56 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 29 Sep 2018 22:20:24 +0800 Subject: [PATCH] Fix symlinking in install subcommand --- ghcup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghcup.sh b/ghcup.sh index 62e0de2..48bf697 100755 --- a/ghcup.sh +++ b/ghcup.sh @@ -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}"