mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
builder/parallels: Added platform check
This commit is contained in:
parent
9ad2b98673
commit
10be7e27de
1 changed files with 5 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue