-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Add a test for root before copying/extracting files #73
Comments
I'll second that :-) |
Here is a piece of code i graciously stole from SO for that use case ;-)
|
This is a good idea and I actually have a use case for this myself. My main worry with the piece of code that @philrykoff posted here is I am not sure that |
…ting (bug #73) Bumping version number to 2.3.0 for next release
Just implemented this, let me know how it works for you. I guess I should release a new version soon. |
Works great - thanks for the extremely short + kind turnaround! |
I've noticed only today that this got implemented, I'll try right away. I'm happy my advice helped :) |
I would like to suggest adding an option to allow to check that the user is "root", either because using "sudo" or actually root, before performing any kind of copying/extracting.
In fact, if the installer requires root privileges, but those are not available, this could save quite some time if the installer is big.
The text was updated successfully, but these errors were encountered: