diff --git a/lib/GHCup/GHC.hs b/lib/GHCup/GHC.hs index ddf84a0..1f0f26c 100644 --- a/lib/GHCup/GHC.hs +++ b/lib/GHCup/GHC.hs @@ -763,7 +763,8 @@ rmGHCVer ver = do Dirs {..} <- lift getDirs - lift $ hideError doesNotExistErrorType $ rmDirectoryLink (fromGHCupPath baseDir "share") + when isSetGHC $ do + lift $ hideError doesNotExistErrorType $ rmDirectoryLink (fromGHCupPath baseDir "share")