We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 827cb9e commit b273fe1Copy full SHA for b273fe1
cmd/create.go
@@ -3,6 +3,7 @@ package cmd
3
import (
4
"fmt"
5
"path"
6
+ "strings"
7
8
"github.com/commitdev/zero/internal/config/projectconfig"
9
"github.com/commitdev/zero/internal/constants"
@@ -28,7 +29,7 @@ var createCmd = &cobra.Command{
28
29
}
30
31
func Create(dir string, createConfigPath string) {
- if createConfigPath == "" {
32
+ if strings.Trim(createConfigPath, " ") == "" {
33
exit.Fatal("config path cannot be empty!")
34
35
configFilePath := path.Join(dir, createConfigPath)
0 commit comments