fishworks / gofish

Keep your fish fresh! :tropical_fish:
https://gofi.sh
Apache License 2.0
811 stars 64 forks source link

Detect root (uid 0) and bypass sudo. #186

Closed azilber closed 3 years ago

azilber commented 3 years ago

This change allows gofish to run at root (uid 0). Useful when used within Docker, while also retaining sudo usage when not run as root.

azilber commented 3 years ago

Hey, I'm going to redo this pull request so there's less cruft in here.