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

Enabling with no timeout, i.e. forever, shows "Caffeinate will be active for another " #6

Closed
tupton opened this issue Dec 11, 2015 · 2 comments

Comments

@tupton
Copy link

tupton commented Dec 11, 2015

It looks like the check for whether caffeinate is running forever doesn't always work. For me, in script.sh on line 35, $total is 0, not empty.

if [[ -z "$total" ]]; then

The check should be something like

if [[ -z "$total" || "$total" == 0 ]]; then
@tupton
Copy link
Author

tupton commented Dec 11, 2015

It looks like this is an issue with the version posted at packal but not with master here. Is there any way you can update that version to the latest?

(Also, not quite as important, but it'd be super-awesome to use tags and github's releases to track different versions)

@tupton tupton closed this as completed Dec 11, 2015
@shawnrice
Copy link
Owner

Yeah. I should do both of those.

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

No branches or pull requests

2 participants