From 440495df5225d07af9d62bb16c0879f9a8473d7c Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 5 Oct 2022 22:39:57 +0300 Subject: [PATCH] Makefile: fix sed command and if condition for Linux bash after 2d11896486219ca9f8f9cf6152bf28eac7db06f8 --- Makefile | 6 +++--- docs/README.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6148027f5..a821b9f39 100644 --- a/Makefile +++ b/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/