@cryptotaxi247 / netdata-1 / commits / fbbb85332

check for curl to not get wrong error message (#6931)

Timo committed Sep 25, 2019 at 11:58 UTC fbbb85332de7e9c93e68d6409d386982e0c76688
1 file changed +6
tests/stress.sh
+6
@@ -1,6 +1,12 @@
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-3.0-or-later
3
4 +if ! hash curl 2>/dev/null
5 +then
6 + 1>&2 echo "'curl' not found on system. Please install 'curl'."
7 + exit 1
8 +fi
9 +
10 # set the host to connect to
11 if [ ! -z "$1" ]
12 then