Skip to content

Commit aa91d2b

Browse files
committed
Allow building and generating manpages as root
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 8cff937 commit aa91d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/limactl/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func newApp() *cobra.Command {
8383
formatter.ForceColors = true
8484
logrus.StandardLogger().SetFormatter(formatter)
8585
}
86-
if os.Geteuid() == 0 {
86+
if os.Geteuid() == 0 && cmd.Name() != "generate-man" {
8787
return errors.New("must not run as the root")
8888
}
8989
// Make sure either $HOME or $LIMA_HOME is defined, so we don't need

0 commit comments

Comments
 (0)