Commit 10be7e27 authored by Mikhail Zholobov's avatar Mikhail Zholobov

builder/parallels: Added platform check

parent 9ad2b986
......@@ -45,6 +45,11 @@ type Driver interface {
func NewDriver() (Driver, error) {
var prlctlPath string
if runtime.GOOS != "darwin" {
return nil, fmt.Errorf(
"Parallels builder works only on \"darwin\" platform!")
}
if prlctlPath == "" {
var err error
prlctlPath, err = exec.LookPath("prlctl")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment