Skip to content

Commit c121518

Browse files
committed
Fix Readme generation
1 parent 10fc62b commit c121518

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ lint-workflow:
5252

5353
build: pull-base-image
5454
docker build -t $(IMAGE) .
55-
cd build; ./gen-readme.sh $(IMAGE)
55+
./build/gen-readme.sh $(IMAGE)
5656

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

6161

6262
# -------------------------------------------------------------------------------------------------

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,5 +270,5 @@ It allows any of the following combinations:
270270
## Version
271271

272272
```
273-
nginx version: nginx/1.18.0
273+
nginx version: nginx/1.18.0
274274
```

build/gen-readme.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ IMAGE="${1}"
1010
###
1111
### Retrieve information afterwards and Update README.md
1212
###
13-
INFO="$( docker run -it --rm --entrypoint=nginx ${IMAGE} -v 2>&1 )"
13+
INFO="$( docker run --rm --entrypoint=nginx "${IMAGE}" -v 2>&1 | tr -d '\r' )"
1414

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

0 commit comments

Comments
 (0)