Skip to content

Commit

Permalink
check for curl to not get wrong error message (netdata#6931)
Browse files Browse the repository at this point in the history
  • Loading branch information
underhood authored and Saruspete committed Oct 9, 2019
1 parent 88060c2 commit e3db1fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/stress.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e3db1fb

Please sign in to comment.