From fbbb85332de7e9c93e68d6409d386982e0c76688 Mon Sep 17 00:00:00 2001 From: Timo Date: Wed, 25 Sep 2019 11:58:52 +0200 Subject: check for curl to not get wrong error message (#6931) --- tests/stress.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/stress.sh b/tests/stress.sh index 9c9393d3b7..cef5327776 100755 --- a/tests/stress.sh +++ b/tests/stress.sh @@ -1,6 +1,12 @@ #!/bin/bash # SPDX-License-Identifier: GPL-3.0-or-later +if ! hash curl 2>/dev/null +then + 1>&2 echo "'curl' not found on system. Please install 'curl'." + exit 1 +fi + # set the host to connect to if [ ! -z "$1" ] then -- cgit v1.2.3