diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-12-19 22:53:24 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-12-19 22:53:24 +0100 |
| commit | 49cbda602774bfceec3d31d95ec993aa1afcc74a (patch) | |
| tree | 980e5517891ff41a24f4fa1452d1e4ae90f28376 | |
| parent | eb68629653f81f19df20b0d1c6bbab7d2f5db82d (diff) | |
| download | slackbuilder-49cbda602774bfceec3d31d95ec993aa1afcc74a.tar.gz | |
Move newline after resetting the colour
| -rw-r--r-- | src/Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs index b668574..f0f9994 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -293,11 +293,12 @@ checkUpdateAvailability Package{..} version = do | otherwise -> liftIO $ do setSGR [SetColor Foreground Dull Yellow] - Text.IO.putStrLn + Text.IO.putStr $ "A new version of " <> name <> " " <> getField @"version" parsedInfoFile <> " is available (" <> version <> ")." setSGR [Reset] + putStrLn "" pure $ Just parsedInfoFile Left errorBundle -> liftIO (putStr $ errorBundlePretty errorBundle) >> pure Nothing |
