Disable root in ls command

This commit is contained in:
Elara 2022-12-01 00:11:27 -08:00
parent 40cf0da2c0
commit df72d95ab7
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}