From df72d95ab764e163f646a25d532526b6848d4970 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Thu, 1 Dec 2022 00:11:27 -0800 Subject: [PATCH] Disable root in ls command --- list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list.go b/list.go index b6bda8b..76905fd 100644 --- a/list.go +++ b/list.go @@ -49,7 +49,7 @@ func listCmd(c *cli.Context) error { log.Fatal("Unable to detect supported package manager on system").Send() } - installed, err = mgr.ListInstalled(nil) + installed, err = mgr.ListInstalled(&manager.Opts{AsRoot: false}) if err != nil { log.Fatal("Error listing installed packages").Err(err).Send() }