Skip to content

Commit

Permalink
Fix README.md link in packages (elastic#5715)
Browse files Browse the repository at this point in the history
The links in the README.md file are broken for the 6.0 release. The reason is that gotpl interprets 6.0 and makes 6 out of it. Add "..." around fixes the issue.
  • Loading branch information
ruflin authored and exekias committed Nov 27, 2017
1 parent ebdec71 commit 817a266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ https://github.com/elastic/beats/compare/v6.0.0...master[Check the HEAD diff]

*Affecting all Beats*

- Fix documentation links in README.md files. {pull}5710[5710]

*Auditbeat*

*Filebeat*
Expand Down
3 changes: 2 additions & 1 deletion dev-tools/packer/xgo-scripts/before_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ fi
cat ${ES_BEATS}/libbeat/docs/version.asciidoc >> ${PREFIX}/package.yml

# Make variable naming of doc-branch compatible with gotpl. Generate and copy README.md into homedir
sed -i -e 's/:doc-branch/doc_branch/g' ${PREFIX}/package.yml
# Add " to the version as gotpl interprets 6.0 as 6
sed -i -e 's/:doc-branch: \([0-9]*.[0-9]*\)/doc_branch: "\1" /g' ${PREFIX}/package.yml

# Create README file
/go/bin/gotpl /templates/readme.md.j2 < ${PREFIX}/package.yml > ${PREFIX}/homedir/README.md

0 comments on commit 817a266

Please sign in to comment.