Skip to content

Commit

Permalink
fix project path
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Gololicic committed Nov 21, 2022
1 parent 7685fb2 commit b13e622
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/flowser/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func (a *App) Run(installDir string, projectPath string) error {
return err
}

if projectPath != "" {
projectPath = fmt.Sprintf("--project-path=%s", projectPath)
}

cmd := exec.Command(exe, projectPath)

go func() {
Expand All @@ -50,10 +54,6 @@ func (a *App) Run(installDir string, projectPath string) error {
_ = cmd.Process.Kill()
}()

if projectPath != "" {
projectPath = fmt.Sprintf("--project-path=%s", projectPath)
}

return cmd.Run()
}

Expand Down

0 comments on commit b13e622

Please sign in to comment.