mirror of
https://gitea.com/gitea/tea.git
synced 2026-05-15 20:29:22 +02:00
Fix login edit to open one editor only (#977)
Fix https://gitea.com/gitea/tea/issues/906 Reviewed-on: https://gitea.com/gitea/tea/pulls/977 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Minjie Fang <wingsallen@gmail.com> Co-committed-by: Minjie Fang <wingsallen@gmail.com>
This commit is contained in:
@@ -32,9 +32,7 @@ func runLoginEdit(_ context.Context, _ *cli.Command) error {
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
if err := cmd.Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
return cmd.Run()
|
||||
}
|
||||
return open.Start(config.GetConfigPath())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user