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 wwhrd check -f .wwhrd.yml
copy-docs: copy-docs:
> ${DST} echo '' > ${DST}
@if [[ ${ORDER} > 0 ]]; then \ @if [ ${ORDER} -ne 0 ]; then \
echo "---\nsort: ${ORDER}\n---\n" > ${DST}; \ echo "---\nsort: ${ORDER}\n---\n" > ${DST}; \
fi fi
cat ${SRC} >> ${DST} 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. # Copies docs for all components and adds the order tag.
# For ORDER=0 it adds no order tag. # For ORDER=0 it adds no order tag.

View file

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