Fix installation instructions update

This commit is contained in:
David Pilato 2014-08-04 16:19:37 +02:00
parent 6582d8b42c
commit 985e3002b4
1 changed files with 2 additions and 2 deletions

View File

@ -232,8 +232,8 @@ def update_documentation_to_released_version(readme_file, repo_url, release, bra
# Update installation instructions in README.md file
def set_install_instructions(readme_file, artifact_name, release):
pattern = '`bin/plugin -install elasticsearch/%s/.+`' % artifact_name
replacement = '`bin/plugin -install elasticsearch/%s/%s`' % (artifact_name, release)
pattern = 'bin/plugin -install elasticsearch/%s/.+' % artifact_name
replacement = 'bin/plugin -install elasticsearch/%s/%s' % (artifact_name, release)
def callback(line):
return re.sub(pattern, replacement, line)