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.
This commit is contained in:
Sander van Harmelen 2015-06-30 14:03:06 +02:00
parent 2626c179a5
commit b7e981c6d1
1 changed files with 1 additions and 1 deletions

View File

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