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 ba7c19b commit 8b64c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 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=httpd ${IMAGE} -V 2>&1 | tr -d "\r" )"
INFO="$( docker run --rm --entrypoint=httpd "${IMAGE}" -V 2>&1 | tr -d '\r' )"

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

0 comments on commit 8b64c73

Please sign in to comment.