bug fix
This commit is contained in:
parent
1fcb9e8209
commit
e68664d7b4
|
@ -60,7 +60,7 @@ $ go get github.com/tockins/realize
|
||||||
$ realize run
|
$ realize run
|
||||||
```
|
```
|
||||||
|
|
||||||
It will create a realize.yaml file if it doesn't exist already, adds the working directory as project and run the pipeline.
|
It will create a realize.yaml file if it doesn't exist already, add the working directory as project and run the pipeline.
|
||||||
|
|
||||||
The Run command supports the following custom parameters:
|
The Run command supports the following custom parameters:
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ func main() {
|
||||||
if gopath == "" {
|
if gopath == "" {
|
||||||
return errors.New("$GOPATH isn't set properly")
|
return errors.New("$GOPATH isn't set properly")
|
||||||
}
|
}
|
||||||
|
|
||||||
r = realize{
|
r = realize{
|
||||||
Sync: make(chan string),
|
Sync: make(chan string),
|
||||||
Settings: settings.Settings{
|
Settings: settings.Settings{
|
||||||
|
|
|
@ -56,7 +56,7 @@ func (h *Blueprint) Run(p *cli.Context) error {
|
||||||
|
|
||||||
// env variables
|
// env variables
|
||||||
for key, item := range h.Projects[k].Environment {
|
for key, item := range h.Projects[k].Environment {
|
||||||
if err := os.Setenv(key, item); err != nil{
|
if err := os.Setenv(key, item); err != nil {
|
||||||
h.Projects[k].Buffer.StdErr = append(h.Projects[k].Buffer.StdErr, BufferOut{Time: time.Now(), Text: err.Error(), Type: "Env error", Stream: ""})
|
h.Projects[k].Buffer.StdErr = append(h.Projects[k].Buffer.StdErr, BufferOut{Time: time.Now(), Text: err.Error(), Type: "Env error", Stream: ""})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue