fix: use more robust output cmd

This commit is contained in:
decentral1se 2021-11-03 07:56:19 +01:00
parent f0de18a7f0
commit 49a87cae2e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 5 additions and 1 deletions

View File

@ -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
}