-
Notifications
You must be signed in to change notification settings - Fork 50
Allow everything to work before restarting the shell #34
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
base: master
Are you sure you want to change the base?
Conversation
- Document `DAEMON_STOP_SIGNAL`
- Start in `${XDG_RUNTIME_DIR}`
- Use `case` to print the proper message
- Remove an unused local variable
Adjustments from review
service-daemon
Outdated
| echo "." | ||
| (restart) printf -- 'Restart' ;; | ||
| (start) printf -- 'Start' ;; | ||
| (stop) printf -- 'Stopp' ;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still harming the readability of this code.
I do not see a benefit is keeping this printout DRY to such an extent.
I'm also kind of surprised to see that the enclosed parentheses form for case labels is part of the POSIX sh spec.
But I did check it in the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the new function is good balance between duplicating in every case and the extent the previous version went to.
Let me know if you have a better way to maintain readability without duplicated messages for every case.
The open parentheses always look odd to me, so when I learned about the closed form, I was happy to start using that way instead.
| "${cmd}" | ||
| done | ||
| printf -- '.\n' | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think this is overkill but it's not worth arguing over.
No description provided.