🚨 Switch back to command -v for class-dump detection

This commit is contained in:
Ben Chatelain 2019-03-30 10:06:44 -06:00
parent b75ad89eda
commit 81934624e9

View file

@ -13,8 +13,10 @@ main() {
} }
check_class_dump() { check_class_dump() {
if ! which -s class-dump; then # command: usage: command [-pVv] command [arg ...]
echo "'class-dump' is not installed" >&2 if ! command -v class-dump; then
echo "class-dump is not installed." >&2
echo "Download from http://stevenygard.com/projects/class-dump/" >&2
exit 1 exit 1
fi fi
} }