mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
BuildWidthTable: wait until the table is built before we create the output path
This commit is contained in:
parent
b5b980c9e8
commit
107be32423
@ -111,12 +111,13 @@ main = do
|
||||
exitFailure
|
||||
Just path -> return path
|
||||
|
||||
let dir = takeDirectory outputPath
|
||||
createDirectoryIfMissing True dir
|
||||
|
||||
putStrLn "Querying terminal:"
|
||||
builtTable <- buildUnicodeWidthTable $ configBound config
|
||||
|
||||
let dir = takeDirectory outputPath
|
||||
createDirectoryIfMissing True dir
|
||||
writeUnicodeWidthTable outputPath builtTable
|
||||
|
||||
putStrLn $ "\nOutput table written to " <> outputPath
|
||||
|
||||
when (configUpdate config) $ do
|
||||
|
Loading…
Reference in New Issue
Block a user