forked from coop-cloud/abra
fix: use more robust output cmd
This commit is contained in:
parent
f0de18a7f0
commit
49a87cae2e
|
@ -136,7 +136,11 @@ func newLocalServer(c *cli.Context, domainName string) error {
|
|||
}
|
||||
|
||||
if provision {
|
||||
if _, err := exec.LookPath("docker"); err != nil {
|
||||
out, err := exec.Command("which", "docker").Output()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if string(out) == "" {
|
||||
if err := installDockerLocal(c); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue