From 19eaa527e1d445b30d7ba4d23430d22cd882d9c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 6 Feb 2024 13:18:34 +0100 Subject: [PATCH] bugfix in macro parser: enable throughput if macros are disabled --- parsers/60_macros.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parsers/60_macros.sh b/parsers/60_macros.sh index 60ac8f3..7d5232d 100755 --- a/parsers/60_macros.sh +++ b/parsers/60_macros.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2023 Paul Hänsch +# Copyright 2023, 2024 Paul Hänsch # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -14,7 +14,9 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR # IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -if which awk >/dev/null; then +if [ ! "$MD_MACROS" ]; then + cat +elif which awk >/dev/null; then awk -f "$_EXEC/macros.awk" elif which busybox >/dev/null; then busybox awk -f "$_EXEC/macros.awk" -- 2.39.2