Set vi as default editor is none is defined

This commit is contained in:
Gregory Kurtzer
2020-12-20 22:56:32 -08:00
parent a5714cb15c
commit 98e03162d3

View File

@@ -17,6 +17,10 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
editor := os.Getenv("EDITOR")
var overlaySourceDir string
if editor == "" {
editor = "vi"
}
if SystemOverlay == true {
overlaySourceDir = config.SystemOverlaySource(args[0])
} else {