From: Paul Hänsch Date: Tue, 6 Feb 2024 12:18:34 +0000 (+0100) Subject: bugfix in macro parser: enable throughput if macros are disabled X-Git-Url: https://git.plutz.net/?p=shellwiki;a=commitdiff_plain;h=19eaa527e1d445b30d7ba4d23430d22cd882d9c6 bugfix in macro parser: enable throughput if macros are disabled --- 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"