Skip to content
Snippets Groups Projects
Verified Commit fd5b9b59 authored by meskio's avatar meskio :tent:
Browse files

[bug] check if error is not nil before checking if it's nopolkit

parent 037ab292
No related branches found
No related tags found
1 merge request!3[bug] check if error is not nil before checking if it's nopolkit
......@@ -45,7 +45,7 @@ func main() {
func checkAndInstallHelpers(b *bitmask.Bitmask, notify *notificator) {
helpers, priviledge, err := b.VPNCheck()
if err.Error() == "nopolkit" || (err == nil && !priviledge) {
if (err != nil && err.Error() == "nopolkit") || (err == nil && !priviledge) {
log.Printf("No polkit found")
notify.authAgent()
} else if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment