From c20b6bef2996b32c68b152cada2dc29e83ae7827 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 17 Mar 2022 21:11:39 +0100 Subject: [PATCH] Don't do update check on --no-verbose --- app/ghcup/Main.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ghcup/Main.hs b/app/ghcup/Main.hs index c48107c..7b31c40 100644 --- a/app/ghcup/Main.hs +++ b/app/ghcup/Main.hs @@ -235,7 +235,9 @@ Report bugs at |] Interactive -> pure () #endif -- check for new tools - _ -> lookupEnv "GHCUP_SKIP_UPDATE_CHECK" >>= \case + _ + | Just False <- optVerbose -> pure () + | otherwise -> lookupEnv "GHCUP_SKIP_UPDATE_CHECK" >>= \case Nothing -> void . flip runReaderT s' . runE @'[TagNotFound, NextVerNotFound, NoToolVersionSet] $ do newTools <- lift checkForUpdates forM_ newTools $ \newTool@(t, l) -> do