Skip to content

Commit

Permalink
incus: Fix first use message on admin init
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Nov 13, 2023
1 parent 2bc3567 commit 2956181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/incus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func (c *cmdGlobal) PreRun(cmd *cobra.Command, args []string) error {
}

flush := false
if runInit {
if runInit && (cmd.Name() != "init" || cmd.Parent() == nil || cmd.Parent().Name() != "admin") {
fmt.Fprintf(os.Stderr, i18n.G("If this is your first time running Incus on this machine, you should also run: incus admin init")+"\n")
flush = true
}
Expand Down

0 comments on commit 2956181

Please sign in to comment.