From cad3dc383b2d808dc618e4dd16a018e3ecd4dbea Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 14 Mar 2024 18:20:13 +0300 Subject: [PATCH] blockcheck: correct make command line for OpenBSD and MacOS --- blockcheck.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/blockcheck.sh b/blockcheck.sh index e11050c..c6a26ee 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -251,7 +251,16 @@ check_prerequisites() echo \* checking prerequisites [ "$UNAME" = Darwin -o -x "$PKTWS" ] && [ -x "$TPWS" ] && [ -x "$MDIG" ] || { - echo $PKTWS or $TPWS or $MDIG is not available. run \"$ZAPRET_BASE/install_bin.sh\" or make -C \"$ZAPRET_BASE\" + local target + case $UNAME in + Darwin) + target="mac" + ;; + OpenBSD) + target="bsd" + ;; + esac + echo $PKTWS or $TPWS or $MDIG is not available. run \"$ZAPRET_BASE/install_bin.sh\" or \`make -C \"$ZAPRET_BASE\" $target\` exitp 6 }