fix(cmd/config): make config edit subcommand work on windows
Co-authored-by: Jorropo <jorropo.pgm@gmail.com>
Chawye Hsu committed
Jun 9, 2022 at 23:36 UTC
20083ab3284ba754fc1d31284b75cc7a6a7f9dd6
1 file changed
+1
-1
core/commands/config.go
+1
-1
@@ -502,7 +502,7 @@ func editConfig(filename string) error {
502
return errors.New("ENV variable $EDITOR not set")
503
}
504
505
- cmd := exec.Command("sh", "-c", editor+" "+filename)
505
+ cmd := exec.Command(editor, filename)
506
cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr
507
return cmd.Run()
508
}