Only check for upgrades when not upgrading

This commit is contained in:
Julian Ospald 2020-07-19 00:47:20 +02:00
parent 4c4266dd8c
commit cfe24428fa
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -1033,7 +1033,10 @@ Report bugs at <https://gitlab.haskell.org/haskell/ghcup-hs/issues>|]
runLogger
($(logError) [i|Error fetching download info: #{e}|])
exitWith (ExitFailure 2)
runLogger $ checkForUpdates dls pfreq
case optCommand of
Upgrade _ _ -> pure ()
_ -> runLogger $ checkForUpdates dls pfreq