mirror of
https://github.com/jaygooby/ttfb.sh
synced 2025-12-10 16:07:22 +01:00
Fix invalid option for which
This commit is contained in:
2
ttfb
2
ttfb
@@ -62,7 +62,7 @@ set -eu
|
|||||||
|
|
||||||
# check dependencies
|
# check dependencies
|
||||||
for dependency in curl bc column; do
|
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
|
done
|
||||||
|
|
||||||
# Cribbed from https://stackoverflow.com/a/41762669/391826
|
# Cribbed from https://stackoverflow.com/a/41762669/391826
|
||||||
|
|||||||
Reference in New Issue
Block a user