linutil
linutil copied to clipboard
Add root check
Type of Change
- [ ] New feature
- [x] Bug fix
- [ ] Documentation update
- [ ] Refactoring
- [ ] Hotfix
- [x] Security patch
- [ ] UI/UX improvement
Description
- Thanks @cartercanedy and @adamperkowski for helping out !!
- Add root check and warn users about running as root
- Uses
nix
crate
Testing
- Undergoing. Most of the scripts are tested with root, should be okay !!
Issues / other PRs related
- Resolves #816
Checklist
- [x] My code adheres to the coding and style guidelines of the project.
- [x] I have performed a self-review of my own code.
- [x] I have commented my code, particularly in hard-to-understand areas.
- [ ] I have made corresponding changes to the documentation.
- [x] My changes generate no errors/warnings/merge conflicts.