improved error checking

This commit is contained in:
Steve Waterworth
2018-02-06 16:00:17 -05:00
parent ca34278047
commit 979b5c839d

View File

@@ -6,5 +6,12 @@ then
exit 1
fi
TEST=$(echo "$HOST" | egrep '^http://[a-z]+')
if [ -z "$TEST" ]
then
echo "Host must start with http://"
exit 1
fi
locust -f robot-shop.py --host "$HOST" --no-web -c 1 -r 1