When surrounding the version with quotes, even no version (an empty
string) will be accepted as parameter. The install.sh script treats an
empty version string the same as no when version is set. So it will
then just use the latest available version.
pull/2570/head
Sander van Harmelen 11 years ago
parent 2626c179a5
commit b7e981c6d1

@ -33,7 +33,7 @@ func (p *Provisioner) linuxInstallChefClient(
}
// Then execute the install.sh scrip to download and install Chef Client
err = p.runCommand(o, comm, fmt.Sprintf("%sbash ./install.sh -v %s", prefix, p.Version))
err = p.runCommand(o, comm, fmt.Sprintf("%sbash ./install.sh -v %q", prefix, p.Version))
if err != nil {
return err
}

Loading…
Cancel
Save