better progress
This commit is contained in:
parent
0561ea1b28
commit
3d2b44ffe5
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ dummyRemove state url = return False
|
||||||
downloadUrl :: State -> Key -> FilePath -> IO Bool
|
downloadUrl :: State -> Key -> FilePath -> IO Bool
|
||||||
downloadUrl state url file = do
|
downloadUrl state url file = do
|
||||||
putStrLn $ "download: " ++ url
|
putStrLn $ "download: " ++ url
|
||||||
result <- try $ rawSystem "curl" ["-o", file, url]
|
result <- try $ rawSystem "curl" ["-#", "-o", file, url]
|
||||||
case (result) of
|
case (result) of
|
||||||
Left _ -> return False
|
Left _ -> return False
|
||||||
Right _ -> return True
|
Right _ -> return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue