Fix GHCUP_INSTALL_BASE_PREFIX
This should be the *parent* dir of '.ghcup', not the full destination.
This commit is contained in:
parent
b18aafe2c4
commit
ad4d185ead
@ -39,11 +39,10 @@ import qualified System.Posix.User as PU
|
||||
|
||||
ghcupBaseDir :: IO (Path Abs)
|
||||
ghcupBaseDir = do
|
||||
getEnv "GHCUP_INSTALL_BASE_PREFIX" >>= \case
|
||||
bdir <- getEnv "GHCUP_INSTALL_BASE_PREFIX" >>= \case
|
||||
Just r -> parseAbs r
|
||||
Nothing -> do
|
||||
home <- liftIO getHomeDirectory
|
||||
pure (home </> [rel|.ghcup|])
|
||||
Nothing -> liftIO getHomeDirectory
|
||||
pure (bdir </> [rel|.ghcup|])
|
||||
|
||||
ghcupGHCBaseDir :: IO (Path Abs)
|
||||
ghcupGHCBaseDir = ghcupBaseDir <&> (</> [rel|ghc|])
|
||||
|
Loading…
Reference in New Issue
Block a user