summaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-19 00:57:40 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-19 00:57:40 -0400
commit9fc94d780b7331da13597208ba37a9f4d4ab6531 (patch)
tree6572c007ac50a8086a6cdadf2c80de1fc4cc24ea /Config.hs
parent1db7d27a451f552dbae8760e83c73b90da8114d5 (diff)
better readProcess
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Config.hs b/Config.hs
index 1aa5a4ac5..2c26adc73 100644
--- a/Config.hs
+++ b/Config.hs
@@ -56,7 +56,7 @@ remoteCost r def = do
cmd <- getRemoteConfig r "cost-command" ""
(fromMaybe def . readish) <$>
if not $ null cmd
- then liftIO $ readProcess "sh" ["-c", cmd] ""
+ then liftIO $ readProcess "sh" ["-c", cmd]
else getRemoteConfig r "cost" ""
cheapRemoteCost :: Int
@@ -116,4 +116,4 @@ getHttpHeaders = do
cmd <- getConfig (annexConfig "http-headers-command") ""
if null cmd
then fromRepo $ Git.Config.getList "annex.http-headers"
- else lines <$> liftIO (readProcess "sh" ["-c", cmd] "")
+ else lines <$> liftIO (readProcess "sh" ["-c", cmd])