Makefile: fix sed command and if condition for Linux bash after 2d11896486

This commit is contained in:
Aliaksandr Valialkin 2022-10-05 22:39:57 +03:00
parent 61544e13ad
commit 440495df52
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1
2 changed files with 4 additions and 3 deletions

View file

@ -397,12 +397,12 @@ check-licenses: install-wwhrd
wwhrd check -f .wwhrd.yml
copy-docs:
> ${DST}
@if [[ ${ORDER} > 0 ]]; then \
echo '' > ${DST}
@if [ ${ORDER} -ne 0 ]; then \
echo "---\nsort: ${ORDER}\n---\n" > ${DST}; \
fi
cat ${SRC} >> ${DST}
sed -i '' 's/<img src=\"docs\//<img src=\"/' ${DST}
sed -i 's/<img src=\"docs\//<img src=\"/' ${DST}
# Copies docs for all components and adds the order tag.
# For ORDER=0 it adds no order tag.

View file

@ -1,3 +1,4 @@
# VictoriaMetrics
[![Latest Release](https://img.shields.io/github/release/VictoriaMetrics/VictoriaMetrics.svg?style=flat-square)](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/latest)