Skip to content

Commit

Permalink
Fix Readme generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Dec 12, 2020
1 parent 10fc62b commit c121518
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ lint-workflow:

build: pull-base-image
docker build -t $(IMAGE) .
cd build; ./gen-readme.sh $(IMAGE)
./build/gen-readme.sh $(IMAGE)

rebuild: pull-base-image
docker build --no-cache -t $(IMAGE) .
cd build; ./gen-readme.sh $(IMAGE)
./build/gen-readme.sh $(IMAGE)


# -------------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,5 @@ It allows any of the following combinations:
## Version

```
nginx version: nginx/1.18.0
nginx version: nginx/1.18.0
```
2 changes: 1 addition & 1 deletion build/gen-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ IMAGE="${1}"
###
### Retrieve information afterwards and Update README.md
###
INFO="$( docker run -it --rm --entrypoint=nginx ${IMAGE} -v 2>&1 )"
INFO="$( docker run --rm --entrypoint=nginx "${IMAGE}" -v 2>&1 | tr -d '\r' )"

echo "${INFO}"
sed -i'' '/##[[:space:]]Version/q' "${CWD}/README.md"
Expand Down

0 comments on commit c121518

Please sign in to comment.