make way for rsync progress output when it's enabled

This commit is contained in:
Joey Hess 2018-03-12 19:10:22 -04:00
parent 1c2c8995ac
commit 7bed3927ba
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -112,6 +112,8 @@ dropKey r key = onRemote NoConsumeStdin r (boolSystem, return False) "dropkey"
rsyncHelper :: OutputHandler -> Maybe MeterUpdate -> [CommandParam] -> Annex Bool
rsyncHelper oh m params = do
unless (quietMode oh) $
showOutput -- make way for progress bar
a <- case m of
Nothing -> return $ rsync params
Just meter -> return $ rsyncProgress oh meter params