projects names fixed
This commit is contained in:
parent
1ec7938974
commit
c5d61e2afd
|
@ -21,7 +21,7 @@ type Config struct {
|
|||
// NameParam check the project name presence. If empty takes the working directory name
|
||||
func nameParam(params *cli.Context) string {
|
||||
var name string
|
||||
if params.String("name") == "" && params.String("path") == "/"{
|
||||
if params.String("name") == "" && params.String("path") == ""{
|
||||
dir, err := os.Getwd()
|
||||
if err != nil {
|
||||
log.Fatal(Red(err))
|
||||
|
|
|
@ -47,7 +47,6 @@ func (h *Config) Fast(params *cli.Context) error {
|
|||
if params.Bool("config") {
|
||||
if err := h.Read(); err == nil {
|
||||
for _, val := range h.Projects {
|
||||
fmt.Println(val)
|
||||
if fast.Path == val.Path {
|
||||
fast = val
|
||||
}
|
||||
|
@ -55,7 +54,7 @@ func (h *Config) Fast(params *cli.Context) error {
|
|||
}
|
||||
}
|
||||
wg.Add(1)
|
||||
fast.Path = ""
|
||||
fast.Path = slash(fast.Path)
|
||||
go fast.Watching()
|
||||
wg.Wait()
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue