summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 9938359..e1b2a56 100644
--- a/main.go
+++ b/main.go
@@ -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 {