Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix progress on MacOS #3

Merged
merged 1 commit into from
Nov 18, 2019
Merged

Fix progress on MacOS #3

merged 1 commit into from
Nov 18, 2019

Conversation

sgeisler
Copy link
Owner

@sgeisler sgeisler commented Nov 18, 2018

Mac OS seems to ship an old rsync version which doesn't
support --info=progress2, but --progress. This PR makes
the supplied flag dependent on the target platform.

Related to #2.

@sgeisler sgeisler added bug Something isn't working enhancement New feature or request labels Nov 18, 2018
@kianenigma
Copy link

I would add this as a note to the README: On macos, this crate will not work properly and needs an update of rsync.

src/main.rs Outdated
.arg("--delete");

if progress {
rsync_to.arg("--info=progress2");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is called --progress in rsync options on MacOS. So the function should check the OS before applying this feature.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the hint. Can you check if this branch works for you on Mac OS now? Then I'd merge it.

@sgeisler sgeisler changed the title Add progress bar flag Fix progress on MacOS Nov 11, 2019
@sgeisler
Copy link
Owner Author

I guess I'll just merge it ^^

@sgeisler sgeisler merged commit 083feac into master Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants