1
0
mirror of https://github.com/jaygooby/ttfb.sh synced 2025-12-09 23:47:21 +01:00

Merge pull request #3 from sweepyoface/master

Fix invalid option for which
This commit is contained in:
Jay Caines-Gooby
2019-04-18 09:44:19 +01:00
committed by GitHub

2
ttfb
View File

@@ -62,7 +62,7 @@ set -eu
# check dependencies
for dependency in curl bc column; do
which -s $dependency || (echo "You need to have '$dependency' installed and in your \$PATH" >&2 && exit 1)
which $dependency > /dev/null || (echo "You need to have '$dependency' installed and in your \$PATH" >&2 && exit 1)
done
# Cribbed from https://stackoverflow.com/a/41762669/391826