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

allow to set duration higher than width of shell size #7

Merged
merged 5 commits into from
Feb 5, 2019

Conversation

scheleon
Copy link
Contributor

@scheleon scheleon commented Feb 1, 2019

related: #6


I was not able to set the duration higher than the shell size, so I introduced a new variable factor and now the bar fills accordingly( bar fills from done=0;done <(elapsed/factor)).

Copy link
Owner

@edouard-lopez edouard-lopez left a comment

Choose a reason for hiding this comment

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

Thanks for the PR

progress-bar.sh Outdated Show resolved Hide resolved
progress-bar.sh Outdated Show resolved Hide resolved
progress-bar.sh Outdated Show resolved Hide resolved
progress-bar.sh Outdated Show resolved Hide resolved
progress-bar.sh Outdated Show resolved Hide resolved
Copy link
Owner

@edouard-lopez edouard-lopez left a comment

Choose a reason for hiding this comment

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

I did a review, but I got a new line for each step with your code.
progress-bar

Also, you need to rebase on master as I added some tests

@scheleon
Copy link
Contributor Author

scheleon commented Feb 1, 2019

I made some changes and its working fine, no new line, but still its unable to erase the entire last line when completed 100%.

Copy link
Owner

@edouard-lopez edouard-lopez left a comment

Choose a reason for hiding this comment

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

That look nice!
Could you update based on my review, I will merge next week as I won't be available in the coming days.

progress-bar.sh Outdated Show resolved Hide resolved
progress-bar.sh Outdated Show resolved Hide resolved
@scheleon
Copy link
Contributor Author

scheleon commented Feb 2, 2019

I did a quick review and have updated the file. Thanks for the help and support. I would appreciate any advice or suggestions for the future.

progress-bar.sh Outdated Show resolved Hide resolved
@edouard-lopez edouard-lopez merged commit 06a8caf into edouard-lopez:master Feb 5, 2019
@edouard-lopez edouard-lopez changed the title Fixed bug: can't set duration higher than width of shell size allow to set duration higher than width of shell size Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants