mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Makefile: fix sed command and if condition for Linux bash after 2d11896486
This commit is contained in:
parent
61544e13ad
commit
440495df52
2 changed files with 4 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue