OpenGoPro icon indicating copy to clipboard operation
OpenGoPro copied to clipboard

Only ask for sudo password when required

Open epheo opened this issue 1 year ago • 0 comments

This resolves https://github.com/gopro/OpenGoPro/issues/483

Check nmcli permissions and only ask for password if required.

Move getpass to separate func and validate password input, Otherwise raise RuntimeError

Change sudo func to return an empty string if no sudo password is provided in order to prevent formatting of the nmcli commands with sudo prefix if not required. Raise condition is moved at password input using assert.

epheo avatar Feb 15 '24 01:02 epheo